summaryrefslogtreecommitdiffstats
path: root/sys/sys/conf.h
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 /sys/sys/conf.h
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 'sys/sys/conf.h')
-rw-r--r--sys/sys/conf.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/sys/conf.h b/sys/sys/conf.h
index 8128fa7..ec7d7d0 100644
--- a/sys/sys/conf.h
+++ b/sys/sys/conf.h
@@ -258,15 +258,15 @@ void dev_ref(struct cdev *dev);
void dev_refl(struct cdev *dev);
void dev_rel(struct cdev *dev);
void dev_strategy(struct cdev *dev, struct buf *bp);
-struct cdev *make_dev(struct cdevsw *_devsw, int _minor, uid_t _uid, gid_t _gid,
+struct cdev *make_dev(struct cdevsw *_devsw, int _unit, uid_t _uid, gid_t _gid,
int _perms, const char *_fmt, ...) __printflike(6, 7);
-struct cdev *make_dev_cred(struct cdevsw *_devsw, int _minor,
+struct cdev *make_dev_cred(struct cdevsw *_devsw, int _unit,
struct ucred *_cr, uid_t _uid, gid_t _gid, int _perms,
const char *_fmt, ...) __printflike(7, 8);
#define MAKEDEV_REF 0x1
#define MAKEDEV_WHTOUT 0x2
struct cdev *make_dev_credf(int _flags,
- struct cdevsw *_devsw, int _minornr,
+ struct cdevsw *_devsw, int _unit,
struct ucred *_cr, uid_t _uid, gid_t _gid, int _mode,
const char *_fmt, ...) __printflike(8, 9);
struct cdev *make_dev_alias(struct cdev *_pdev, const char *_fmt, ...) __printflike(2, 3);
OpenPOWER on IntegriCloud