diff options
author | phk <phk@FreeBSD.org> | 2004-06-17 17:16:53 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2004-06-17 17:16:53 +0000 |
commit | 40dd98a3bd2049465e7644b361b60da41a46efa0 (patch) | |
tree | fe8b297144afd6d6f7db41275c72cb5eb663ec02 /sys/kern/tty_cons.c | |
parent | 9acfe1e733142ca875624a3acbf96c4ff27b36a4 (diff) | |
download | FreeBSD-src-40dd98a3bd2049465e7644b361b60da41a46efa0.zip FreeBSD-src-40dd98a3bd2049465e7644b361b60da41a46efa0.tar.gz |
Second half of the dev_t cleanup.
The big lines are:
NODEV -> NULL
NOUDEV -> NODEV
udev_t -> dev_t
udev2dev() -> findcdev()
Various minor adjustments including handling of userland access to kernel
space struct cdev etc.
Diffstat (limited to 'sys/kern/tty_cons.c')
-rw-r--r-- | sys/kern/tty_cons.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/tty_cons.c b/sys/kern/tty_cons.c index a9bea7c..e44ea5f 100644 --- a/sys/kern/tty_cons.c +++ b/sys/kern/tty_cons.c @@ -103,7 +103,7 @@ static STAILQ_HEAD(, cn_device) cn_devlist = (cnd == NULL || cnd->cnd_vp == NULL || \ (cnd->cnd_vp->v_type == VBAD && !cn_devopen(cnd, td, 1))) -static udev_t cn_udev_t; +static dev_t cn_udev_t; SYSCTL_OPAQUE(_machdep, CPU_CONSDEV, consdev, CTLFLAG_RD, &cn_udev_t, sizeof cn_udev_t, "T,struct cdev *", ""); @@ -371,9 +371,9 @@ sysctl_kern_consmute(SYSCTL_HANDLER_ARGS) if (error != 0 || req->newptr == NULL) return (error); if (ocn_mute && !cn_mute && cn_is_open) - error = cnopen(NODEV, openflag, 0, curthread); + error = cnopen(NULL, openflag, 0, curthread); else if (!ocn_mute && cn_mute && cn_is_open) { - error = cnclose(NODEV, openflag, 0, curthread); + error = cnclose(NULL, openflag, 0, curthread); cn_is_open = 1; /* XXX hack */ } return (error); |