summaryrefslogtreecommitdiffstats
path: root/sys/net/bpf.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/bpf.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/bpf.c')
-rw-r--r--sys/net/bpf.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/sys/net/bpf.c b/sys/net/bpf.c
index cd12323..874fcb6 100644
--- a/sys/net/bpf.c
+++ b/sys/net/bpf.c
@@ -313,11 +313,11 @@ bpf_detachd(d)
*/
/* ARGSUSED */
static int
-bpfopen(dev, flags, fmt, p)
+bpfopen(dev, flags, fmt, td)
dev_t dev;
int flags;
int fmt;
- struct proc *p;
+ struct thread *td;
{
struct bpf_d *d;
@@ -353,11 +353,11 @@ bpfopen(dev, flags, fmt, p)
*/
/* ARGSUSED */
static int
-bpfclose(dev, flags, fmt, p)
+bpfclose(dev, flags, fmt, td)
dev_t dev;
int flags;
int fmt;
- struct proc *p;
+ struct thread *td;
{
struct bpf_d *d = dev->si_drv1;
@@ -585,12 +585,12 @@ reset_d(d)
*/
/* ARGSUSED */
static int
-bpfioctl(dev, cmd, addr, flags, p)
+bpfioctl(dev, cmd, addr, flags, td)
dev_t dev;
u_long cmd;
caddr_t addr;
int flags;
- struct proc *p;
+ struct thread *td;
{
struct bpf_d *d = dev->si_drv1;
int error = 0;
@@ -966,10 +966,10 @@ bpf_setif(d, ifr)
* Otherwise, return false but make a note that a selwakeup() must be done.
*/
int
-bpfpoll(dev, events, p)
+bpfpoll(dev, events, td)
register dev_t dev;
int events;
- struct proc *p;
+ struct thread *td;
{
struct bpf_d *d;
int revents;
@@ -990,7 +990,7 @@ bpfpoll(dev, events, p)
if (d->bd_hlen != 0 || (d->bd_immediate && d->bd_slen != 0))
revents |= events & (POLLIN | POLLRDNORM);
else
- selrecord(p, &d->bd_sel);
+ selrecord(curthread, &d->bd_sel);
}
BPFD_UNLOCK(d);
return (revents);
OpenPOWER on IntegriCloud