summaryrefslogtreecommitdiffstats
path: root/lib/libgeom/libgeom.h
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2007-05-06 01:17:46 +0000
committerpjd <pjd@FreeBSD.org>2007-05-06 01:17:46 +0000
commit06c3c94d09a055f50fea693c717aab29967eecfa (patch)
tree412b3c67aac60058064ece4d329e452193280558 /lib/libgeom/libgeom.h
parent50b649402941efe6db99339a648cacd28c4e67bc (diff)
downloadFreeBSD-src-06c3c94d09a055f50fea693c717aab29967eecfa.zip
FreeBSD-src-06c3c94d09a055f50fea693c717aab29967eecfa.tar.gz
Implement and document some utility functions that can be used to communicate
with GEOM providers. OK'ed by: phk
Diffstat (limited to 'lib/libgeom/libgeom.h')
-rw-r--r--lib/libgeom/libgeom.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/libgeom/libgeom.h b/lib/libgeom/libgeom.h
index 2cdb037..dc4bbba 100644
--- a/lib/libgeom/libgeom.h
+++ b/lib/libgeom/libgeom.h
@@ -144,6 +144,17 @@ const char *gctl_issue(struct gctl_req *req);
void gctl_ro_param(struct gctl_req *req, const char *name, int len, const void* val);
void gctl_rw_param(struct gctl_req *req, const char *name, int len, void* val);
+/* geom_util.c */
+int g_open(const char *name, int write);
+int g_close(int fd);
+off_t g_mediasize(int fd);
+ssize_t g_sectorsize(int fd);
+int g_flush(int fd);
+int g_delete(int fd, off_t offset, off_t length);
+int g_get_ident(int fd, char *ident, size_t size);
+int g_get_name(const char *ident, char *name, size_t size);
+int g_open_by_ident(const char *ident, int write, char *name, size_t size);
+
__END_DECLS
#endif /* _LIBGEOM_H_ */
OpenPOWER on IntegriCloud