libgeom.h (fbda685d38d09604986d0dfc33e9c7f3b802c2b6) | libgeom.h (5f145b19fcea8417f0a80be61aa9c3c7721b284c) |
---|---|
1/*- 2 * Copyright (c) 2003 Poul-Henning Kamp 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 30 unchanged lines hidden (view full) --- 39#include <geom/geom_ctl.h> 40 41__BEGIN_DECLS 42 43void geom_stats_close(void); 44void geom_stats_resync(void); 45int geom_stats_open(void); 46void *geom_stats_snapshot_get(void); | 1/*- 2 * Copyright (c) 2003 Poul-Henning Kamp 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 30 unchanged lines hidden (view full) --- 39#include <geom/geom_ctl.h> 40 41__BEGIN_DECLS 42 43void geom_stats_close(void); 44void geom_stats_resync(void); 45int geom_stats_open(void); 46void *geom_stats_snapshot_get(void); |
47void geom_stats_snapshot_free(void *arg); 48void geom_stats_snapshot_timestamp(void *arg, struct timespec *tp); 49void geom_stats_snapshot_reset(void *arg); 50struct devstat *geom_stats_snapshot_next(void *arg); | 47void geom_stats_snapshot_free(void *); 48void geom_stats_snapshot_timestamp(void *, struct timespec *); 49void geom_stats_snapshot_reset(void *); 50struct devstat *geom_stats_snapshot_next(void *); |
51 52char *geom_getxml(void); 53 54/* geom_xml2tree.c */ 55 56/* 57 * These structs are used to build the tree based on the XML. 58 * they're named as the kernel variant without the first '_'. --- 62 unchanged lines hidden (view full) --- 121 LIST_ENTRY(gprovider) lg_provider; 122 LIST_HEAD(, gconsumer) lg_consumers; 123 char *lg_mode; 124 off_t lg_mediasize; 125 u_int lg_sectorsize; 126 struct gconf lg_config; 127}; 128 | 51 52char *geom_getxml(void); 53 54/* geom_xml2tree.c */ 55 56/* 57 * These structs are used to build the tree based on the XML. 58 * they're named as the kernel variant without the first '_'. --- 62 unchanged lines hidden (view full) --- 121 LIST_ENTRY(gprovider) lg_provider; 122 LIST_HEAD(, gconsumer) lg_consumers; 123 char *lg_mode; 124 off_t lg_mediasize; 125 u_int lg_sectorsize; 126 struct gconf lg_config; 127}; 128 |
129struct gident * geom_lookupid(struct gmesh *gmp, const void *id); 130int geom_xml2tree(struct gmesh *gmp, char *p); 131int geom_gettree(struct gmesh *gmp); 132void geom_deletetree(struct gmesh *gmp); | 129struct gident * geom_lookupid(struct gmesh *, const void *); 130int geom_xml2tree(struct gmesh *, char *); 131int geom_gettree(struct gmesh *); 132void geom_deletetree(struct gmesh *); |
133 134/* geom_ctl.c */ 135 136struct gctl_req; 137 138#ifdef _STDIO_H_ /* limit #include pollution */ | 133 134/* geom_ctl.c */ 135 136struct gctl_req; 137 138#ifdef _STDIO_H_ /* limit #include pollution */ |
139void gctl_dump(struct gctl_req *req, FILE *f); | 139void gctl_dump(struct gctl_req *, FILE *); |
140#endif | 140#endif |
141void gctl_free(struct gctl_req *req); | 141void gctl_free(struct gctl_req *); |
142struct gctl_req *gctl_get_handle(void); | 142struct gctl_req *gctl_get_handle(void); |
143const char *gctl_issue(struct gctl_req *req); 144void gctl_ro_param(struct gctl_req *req, const char *name, int len, const void* val); 145void gctl_rw_param(struct gctl_req *req, const char *name, int len, void* val); | 143const char *gctl_issue(struct gctl_req *); 144void gctl_ro_param(struct gctl_req *, const char *, int, const void *); 145void gctl_rw_param(struct gctl_req *, const char *, int, void *); |
146 147/* geom_util.c */ | 146 147/* geom_util.c */ |
148int g_open(const char *name, int write); 149int g_close(int fd); 150off_t g_mediasize(int fd); 151ssize_t g_sectorsize(int fd); 152int g_flush(int fd); 153int g_delete(int fd, off_t offset, off_t length); 154int g_get_ident(int fd, char *ident, size_t size); 155int g_get_name(const char *ident, char *name, size_t size); 156int g_open_by_ident(const char *ident, int write, char *name, size_t size); | 148int g_open(const char *, int); 149int g_close(int); 150off_t g_mediasize(int); 151ssize_t g_sectorsize(int); 152int g_flush(int); 153int g_delete(int, off_t, off_t); 154int g_get_ident(int, char *, size_t); 155int g_get_name(const char *, char *, size_t); 156int g_open_by_ident(const char *, int, char *, size_t); |
157 158__END_DECLS 159 160#endif /* _LIBGEOM_H_ */ | 157 158__END_DECLS 159 160#endif /* _LIBGEOM_H_ */ |