summaryrefslogtreecommitdiffstats
path: root/sys/dev/dgb
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>2001-09-12 08:38:13 +0000
committerjulian <julian@FreeBSD.org>2001-09-12 08:38:13 +0000
commit5596676e6c6c1e81e899cd0531f9b1c28a292669 (patch)
treeb1a19fcdf05759281fab0d89efb13f0fdf42102e /sys/dev/dgb
parent83e00d4274950d2b531c24692cd123538ffbddb9 (diff)
downloadFreeBSD-src-5596676e6c6c1e81e899cd0531f9b1c28a292669.zip
FreeBSD-src-5596676e6c6c1e81e899cd0531f9b1c28a292669.tar.gz
KSE Milestone 2
Note ALL MODULES MUST BE RECOMPILED make the kernel aware that there are smaller units of scheduling than the process. (but only allow one thread per process at this time). This is functionally equivalent to teh previousl -current except that there is a thread associated with each process. Sorry john! (your next MFC will be a doosie!) Reviewed by: peter@freebsd.org, dillon@freebsd.org X-MFC after: ha ha ha ha
Diffstat (limited to 'sys/dev/dgb')
-rw-r--r--sys/dev/dgb/dgb.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/sys/dev/dgb/dgb.c b/sys/dev/dgb/dgb.c
index c675485..fa27d31 100644
--- a/sys/dev/dgb/dgb.c
+++ b/sys/dev/dgb/dgb.c
@@ -959,11 +959,11 @@ load_fep:
/* ARGSUSED */
static int
-dgbopen(dev, flag, mode, p)
+dgbopen(dev, flag, mode, td)
dev_t dev;
int flag;
int mode;
- struct proc *p;
+ struct thread *td;
{
struct dgb_softc *sc;
struct tty *tp;
@@ -1049,7 +1049,7 @@ open_top:
}
}
if (tp->t_state & TS_XCLUDE &&
- suser(p)) {
+ suser_td(td)) {
error = EBUSY;
goto out;
}
@@ -1139,11 +1139,11 @@ out:
/*ARGSUSED*/
static int
-dgbclose(dev, flag, mode, p)
+dgbclose(dev, flag, mode, td)
dev_t dev;
int flag;
int mode;
- struct proc *p;
+ struct thread *td;
{
int mynor;
struct tty *tp;
@@ -1499,12 +1499,12 @@ dgbpoll(unit_c)
}
static int
-dgbioctl(dev, cmd, data, flag, p)
+dgbioctl(dev, cmd, data, flag, td)
dev_t dev;
u_long cmd;
caddr_t data;
int flag;
- struct proc *p;
+ struct thread *td;
{
struct dgb_softc *sc;
int unit, pnum;
@@ -1547,7 +1547,7 @@ dgbioctl(dev, cmd, data, flag, p)
}
switch (cmd) {
case TIOCSETA:
- error = suser(p);
+ error = suser_td(td);
if (error != 0)
return (error);
*ct = *(struct termios *)data;
@@ -1622,7 +1622,7 @@ dgbioctl(dev, cmd, data, flag, p)
if(cmd==TIOCSETAW || cmd==TIOCSETAF)
port->mustdrain=1;
- error = linesw[tp->t_line].l_ioctl(tp, cmd, data, flag, p);
+ error = linesw[tp->t_line].l_ioctl(tp, cmd, data, flag, td);
if (error != ENOIOCTL)
return error;
s = spltty();
@@ -1769,7 +1769,7 @@ dgbioctl(dev, cmd, data, flag, p)
break;
case TIOCMSDTRWAIT:
/* must be root since the wait applies to following logins */
- error = suser(p);
+ error = suser_td(td);
if (error != 0) {
splx(s);
return (error);
OpenPOWER on IntegriCloud