summaryrefslogtreecommitdiffstats
path: root/share/man/man9
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2010-09-05 14:47:46 +0000
committerkib <kib@FreeBSD.org>2010-09-05 14:47:46 +0000
commitf346e513459c484c9f3c5ceeac603f3667dc4d6a (patch)
tree0c10e013302ef00dcdb95418fca3599c58f5373e /share/man/man9
parent27478be4a5dbc63a5ecb6c174ab5d18a4fee9622 (diff)
downloadFreeBSD-src-f346e513459c484c9f3c5ceeac603f3667dc4d6a.zip
FreeBSD-src-f346e513459c484c9f3c5ceeac603f3667dc4d6a.tar.gz
Document MAKEDEV_ETERNAL.
MFC after: 3 days
Diffstat (limited to 'share/man/man9')
-rw-r--r--share/man/man9/make_dev.915
1 files changed, 14 insertions, 1 deletions
diff --git a/share/man/man9/make_dev.9 b/share/man/man9/make_dev.9
index 7faedaa..9cc755f 100644
--- a/share/man/man9/make_dev.9
+++ b/share/man/man9/make_dev.9
@@ -24,7 +24,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd May 6, 2010
+.Dd September 5, 2010
.Dt MAKE_DEV 9
.Os
.Sh NAME
@@ -135,6 +135,7 @@ The following values are currently accepted:
MAKEDEV_REF reference the created device
MAKEDEV_NOWAIT do not sleep, may return NULL
MAKEDEV_WAITOK allow the function to sleep to satisfy malloc
+MAKEDEV_ETERNAL created device will be never destroyed
.Ed
.Pp
The
@@ -154,6 +155,18 @@ the device created is destroyed immediately after
drops his reference to cdev.
.Pp
The
+.Dv MAKEDEV_ETERNAL
+flag allows the kernel to not acquire some locks when translating system
+calls into the cdevsw methods calls.
+It is responsibility of the driver author to make sure that
+.Fn destroy_dev
+is never called on the returned cdev.
+For the convenience, use the
+.Dv MAKEDEV_ETERNAL_KLD
+flag for the code that can be compiled into kernel or loaded
+(and unloaded) as loadable module.
+.Pp
+The
.Fn make_dev_cred
function is equivalent to the call
.Bd -literal -offset indent
OpenPOWER on IntegriCloud