summaryrefslogtreecommitdiffstats
path: root/sys/fs/pseudofs/pseudofs.h
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2001-09-25 13:25:30 +0000
committerdes <des@FreeBSD.org>2001-09-25 13:25:30 +0000
commit2462e13fc46de3099c72f5003f4270cbb1200188 (patch)
tree1fb57cc737e49cd15cd9ed9e46194e87d6c420ea /sys/fs/pseudofs/pseudofs.h
parent38da189563b232d6dfd4566f74cf8a744904098b (diff)
downloadFreeBSD-src-2462e13fc46de3099c72f5003f4270cbb1200188.zip
FreeBSD-src-2462e13fc46de3099c72f5003f4270cbb1200188.tar.gz
Clean up my source tree to avoid getting hit too badly by the next KSE or
whatever mega-commit. This goes some way towards adding support for writeable files (needed by procfs).
Diffstat (limited to 'sys/fs/pseudofs/pseudofs.h')
-rw-r--r--sys/fs/pseudofs/pseudofs.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/sys/fs/pseudofs/pseudofs.h b/sys/fs/pseudofs/pseudofs.h
index 474f442..a3e92863 100644
--- a/sys/fs/pseudofs/pseudofs.h
+++ b/sys/fs/pseudofs/pseudofs.h
@@ -49,6 +49,15 @@ typedef enum {
} pfs_type_t;
/*
+ * Flags
+ */
+#define PFS_RDONLY 0x0000 /* read-only (default) */
+#define PFS_WRONLY 0x0001 /* write-only */
+#define PFS_RDWR 0x0002 /* read-write */
+#define PFS_RAWRD 0x0004 /* raw reader */
+#define PFS_RAWWR 0x0008 /* raw writer */
+
+/*
* Data structures
*/
struct pfs_info;
@@ -56,7 +65,8 @@ struct pfs_node;
struct pfs_bitmap;
#define PFS_FILL_ARGS \
- struct thread *td, struct proc *p, struct pfs_node *pn, struct sbuf *sb
+ struct thread *td, struct proc *p, struct pfs_node *pn, \
+ struct sbuf *sb, struct uio *uio
#define PFS_FILL_PROTO(name) \
int name(PFS_FILL_ARGS);
typedef int (*pfs_fill_t)(PFS_FILL_ARGS);
@@ -134,7 +144,7 @@ int pfs_uninit (struct pfs_info *pi, struct vfsconf *vfc);
/*
* Now for some initialization magic...
*/
-#define PSEUDOFS(name, root) \
+#define PSEUDOFS(name, root, version) \
\
static struct pfs_info name##_info = { \
#name, \
@@ -174,6 +184,7 @@ static struct vfsops name##_vfsops = { \
vfs_stdextattrctl, \
}; \
VFS_SET(name##_vfsops, name, VFCF_SYNTHETIC); \
+MODULE_VERSION(name, version); \
MODULE_DEPEND(name, pseudofs, 1, 1, 1);
#endif
OpenPOWER on IntegriCloud