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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/fs/devfs/devfs_int.h b/sys/fs/devfs/devfs_int.h
index df0ad56..5a61dd4 100644
--- a/sys/fs/devfs/devfs_int.h
+++ b/sys/fs/devfs/devfs_int.h
@@ -68,6 +68,8 @@ struct cdev_priv {
LIST_HEAD(, cdev_privdata) cdp_fdpriv;
};
+#define cdev2priv(c) member2struct(cdev_priv, cdp_c, c)
+
struct cdev *devfs_alloc(void);
void devfs_free(struct cdev *);
void devfs_create(struct cdev *dev);
OpenPOWER on IntegriCloud