summaryrefslogtreecommitdiffstats
path: root/sys/fs/devfs/devfs_int.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/fs/devfs/devfs_int.h')
-rw-r--r--sys/fs/devfs/devfs_int.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/sys/fs/devfs/devfs_int.h b/sys/fs/devfs/devfs_int.h
index 9c4c5f9..41cc0c2 100644
--- a/sys/fs/devfs/devfs_int.h
+++ b/sys/fs/devfs/devfs_int.h
@@ -37,9 +37,31 @@
#ifdef _KERNEL
+struct devfs_dirent;
+
+struct cdev_priv {
+ struct cdev cdp_c;
+ TAILQ_ENTRY(cdev_priv) cdp_list;
+
+ u_int cdp_inode;
+
+ u_int cdp_flags;
+#define CDP_ACTIVE (1 << 0)
+
+ u_int cdp_inuse;
+ u_int cdp_maxdirent;
+ struct devfs_dirent **cdp_dirents;
+ struct devfs_dirent *cdp_dirent0;
+};
+
+struct cdev *devfs_alloc(void);
+void devfs_free(struct cdev *);
void devfs_create(struct cdev *dev);
void devfs_destroy(struct cdev *dev);
+extern struct unrhdr *devfs_inos;
+extern struct mtx devmtx;
+
#endif /* _KERNEL */
#endif /* !_FS_DEVFS_DEVFS_INT_H_ */
OpenPOWER on IntegriCloud