summaryrefslogtreecommitdiffstats
path: root/sys/fs/devfs/devfs_int.h
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2010-05-06 19:22:50 +0000
committerkib <kib@FreeBSD.org>2010-05-06 19:22:50 +0000
commit77dcee692636f8f049511471d8c21c5821ade009 (patch)
tree07045cda76ff8aacd7c407e9e4115ed99973521d /sys/fs/devfs/devfs_int.h
parentfecc56fac19c93c470f79d1f557c149bd3c1e9b0 (diff)
downloadFreeBSD-src-77dcee692636f8f049511471d8c21c5821ade009.zip
FreeBSD-src-77dcee692636f8f049511471d8c21c5821ade009.tar.gz
Add MAKEDEV_NOWAIT flag to make_dev_credf(9), to create a device node
in a no-sleep context. If resource allocation cannot be done without sleep, make_dev_credf() fails and returns NULL. Reviewed by: jh MFC after: 2 weeks
Diffstat (limited to 'sys/fs/devfs/devfs_int.h')
-rw-r--r--sys/fs/devfs/devfs_int.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/fs/devfs/devfs_int.h b/sys/fs/devfs/devfs_int.h
index 5a61dd4..f5612e1 100644
--- a/sys/fs/devfs/devfs_int.h
+++ b/sys/fs/devfs/devfs_int.h
@@ -70,7 +70,7 @@ struct cdev_priv {
#define cdev2priv(c) member2struct(cdev_priv, cdp_c, c)
-struct cdev *devfs_alloc(void);
+struct cdev *devfs_alloc(int);
void devfs_free(struct cdev *);
void devfs_create(struct cdev *dev);
void devfs_destroy(struct cdev *dev);
OpenPOWER on IntegriCloud