summaryrefslogtreecommitdiffstats
path: root/share/man/man9/make_dev.9
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2008-09-26 14:31:24 +0000
committered <ed@FreeBSD.org>2008-09-26 14:31:24 +0000
commitd421caabf98d87498154b13c49b8f5d352aea70c (patch)
tree5a243ed6de639e0c81aa1078a7151e061c5a3018 /share/man/man9/make_dev.9
parent4212d51a7da942b0c717c9965552c9549d90de08 (diff)
downloadFreeBSD-src-d421caabf98d87498154b13c49b8f5d352aea70c.zip
FreeBSD-src-d421caabf98d87498154b13c49b8f5d352aea70c.tar.gz
Rename the `minor' argument of make_dev(9) to `unit'.
To prevent any further confusion about device minor and unit numbers, we'd better just refer to device unit numbers. Many people still think the numbers we show inside devfs have any relation to the numbers passed to make_dev(9), which is not the case. Discussed with: kib
Diffstat (limited to 'share/man/man9/make_dev.9')
-rw-r--r--share/man/man9/make_dev.912
1 files changed, 6 insertions, 6 deletions
diff --git a/share/man/man9/make_dev.9 b/share/man/man9/make_dev.9
index e7aee91..7eb1ecd 100644
--- a/share/man/man9/make_dev.9
+++ b/share/man/man9/make_dev.9
@@ -44,11 +44,11 @@ and DEVFS registration for devices
.In sys/param.h
.In sys/conf.h
.Ft struct cdev *
-.Fn make_dev "struct cdevsw *cdevsw" "int minor" "uid_t uid" "gid_t gid" "int perms" "const char *fmt" ...
+.Fn make_dev "struct cdevsw *cdevsw" "int unit" "uid_t uid" "gid_t gid" "int perms" "const char *fmt" ...
.Ft struct cdev *
-.Fn make_dev_cred "struct cdevsw *cdevsw" "int minor" "struct ucred *cr" "uid_t uid" "gid_t gid" "int perms" "const char *fmt" ...
+.Fn make_dev_cred "struct cdevsw *cdevsw" "int unit" "struct ucred *cr" "uid_t uid" "gid_t gid" "int perms" "const char *fmt" ...
.Ft struct cdev *
-.Fn make_dev_credf "int flags" "struct cdevsw *cdevsw" "int minor" "struct ucred *cr" "uid_t uid" "gid_t gid" "int perms" "const char *fmt" ...
+.Fn make_dev_credf "int flags" "struct cdevsw *cdevsw" "int unit" "struct ucred *cr" "uid_t uid" "gid_t gid" "int perms" "const char *fmt" ...
.Ft struct cdev *
.Fn make_dev_alias "struct cdev *pdev" "const char *fmt" ...
.Ft void
@@ -148,14 +148,14 @@ The
.Fn make_dev_cred
function is equivalent to the call
.Bd -literal -offset indent
-make_dev_credf(0, cdevsw, minor, cr, uid, gid, perms, fmt, ...);
+make_dev_credf(0, cdevsw, unit, cr, uid, gid, perms, fmt, ...);
.Ed .
.Pp
The
.Fn make_dev
function call is the same as
.Bd -literal -offset indent
-make_dev_credf(0, cdevsw, minor, NULL, uid, gid, perms, fmt, ...);
+make_dev_credf(0, cdevsw, unit, NULL, uid, gid, perms, fmt, ...);
.Ed .
.Pp
The
@@ -184,7 +184,7 @@ that are available to store state.
Both fields are of type
.Ft void * .
These are designed to replace the
-.Fa minor
+.Fa unit
argument to
.Fn make_dev .
.Pp
OpenPOWER on IntegriCloud