summaryrefslogtreecommitdiffstats
path: root/sys/sys/conf.h
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2010-06-17 08:49:31 +0000
committered <ed@FreeBSD.org>2010-06-17 08:49:31 +0000
commit70171ee94e167f43cca27a9c511c13d625606628 (patch)
tree2324e65bed9956a3e666c8f5cd61bd888caa0034 /sys/sys/conf.h
parentef78a755d618239483b4cc9731b42b3317be77e1 (diff)
downloadFreeBSD-src-70171ee94e167f43cca27a9c511c13d625606628.zip
FreeBSD-src-70171ee94e167f43cca27a9c511c13d625606628.tar.gz
Remove the unit argument from the recently added make_dev_p().
New code that creates character devices shouldn't use device unit numbers, but only si_drv[12] to hold pointer to per-device data. Make this function more future proof by removing the unit number argument. Discussed with: kib
Diffstat (limited to 'sys/sys/conf.h')
-rw-r--r--sys/sys/conf.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/sys/conf.h b/sys/sys/conf.h
index 1039aea..82ea088 100644
--- a/sys/sys/conf.h
+++ b/sys/sys/conf.h
@@ -271,8 +271,8 @@ struct cdev *make_dev_credf(int _flags,
struct ucred *_cr, uid_t _uid, gid_t _gid, int _mode,
const char *_fmt, ...) __printflike(8, 9);
int make_dev_p(int _flags, struct cdev **_cdev, struct cdevsw *_devsw,
- int _unit, struct ucred *_cr, uid_t _uid, gid_t _gid, int _mode,
- const char *_fmt, ...) __printflike(9, 10);
+ 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);
void dev_lock(void);
OpenPOWER on IntegriCloud