summaryrefslogtreecommitdiffstats
path: root/sys/net/if_sl.c
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/net/if_sl.c
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/net/if_sl.c')
-rw-r--r--sys/net/if_sl.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/net/if_sl.c b/sys/net/if_sl.c
index b681a0b..35d67e2 100644
--- a/sys/net/if_sl.c
+++ b/sys/net/if_sl.c
@@ -72,6 +72,7 @@
#include <sys/systm.h>
#include <sys/malloc.h>
#include <sys/mbuf.h>
+#include <sys/proc.h>
#include <sys/dkstat.h>
#include <sys/socket.h>
#include <sys/sockio.h>
@@ -178,10 +179,10 @@ static void sldestroy __P((struct sl_softc *sc));
static struct mbuf *sl_btom __P((struct sl_softc *, int));
static timeout_t sl_keepalive;
static timeout_t sl_outfill;
-static int slclose __P((struct tty *,int));
-static int slinput __P((int, struct tty *));
+static l_close_t slclose;
+static l_rint_t slinput;
+static l_ioctl_t sltioctl;
static int slioctl __P((struct ifnet *, u_long, caddr_t));
-static int sltioctl __P((struct tty *, u_long, caddr_t, int, struct proc *));
static int slopen __P((dev_t, struct tty *));
static int sloutput __P((struct ifnet *,
struct mbuf *, struct sockaddr *, struct rtentry *));
@@ -336,11 +337,10 @@ slopen(dev, tp)
dev_t dev;
register struct tty *tp;
{
- struct proc *p = curproc; /* XXX */
register struct sl_softc *sc;
int s, error;
- error = suser(p);
+ error = suser_td(curthread);
if (error)
return (error);
@@ -437,12 +437,12 @@ slclose(tp,flag)
*/
/* ARGSUSED */
static int
-sltioctl(tp, cmd, data, flag, p)
+sltioctl(tp, cmd, data, flag, td)
struct tty *tp;
u_long cmd;
caddr_t data;
int flag;
- struct proc *p;
+ struct thread *td;
{
struct sl_softc *sc = (struct sl_softc *)tp->t_sc, *nc;
int s, unit, wasup;
OpenPOWER on IntegriCloud