summaryrefslogtreecommitdiffstats
path: root/sys/cam/scsi/scsi_target.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/cam/scsi/scsi_target.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/cam/scsi/scsi_target.c')
-rw-r--r--sys/cam/scsi/scsi_target.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/cam/scsi/scsi_target.c b/sys/cam/scsi/scsi_target.c
index d7370ee..6945678 100644
--- a/sys/cam/scsi/scsi_target.c
+++ b/sys/cam/scsi/scsi_target.c
@@ -551,7 +551,7 @@ targdtor(struct cam_periph *periph)
}
static int
-targopen(dev_t dev, int flags, int fmt, struct proc *p)
+targopen(dev_t dev, int flags, int fmt, struct thread *td)
{
struct cam_periph *periph;
struct targ_softc *softc;
@@ -610,7 +610,7 @@ targopen(dev_t dev, int flags, int fmt, struct proc *p)
}
static int
-targclose(dev_t dev, int flag, int fmt, struct proc *p)
+targclose(dev_t dev, int flag, int fmt, struct thread *td)
{
struct cam_periph *periph;
struct targ_softc *softc;
@@ -807,7 +807,7 @@ fail:
}
static int
-targioctl(dev_t dev, u_long cmd, caddr_t addr, int flag, struct proc *p)
+targioctl(dev_t dev, u_long cmd, caddr_t addr, int flag, struct thread *td)
{
struct cam_periph *periph;
struct targ_softc *softc;
@@ -1080,7 +1080,7 @@ targsendccb(struct cam_periph *periph, union ccb *ccb, union ccb *inccb)
static int
-targpoll(dev_t dev, int poll_events, struct proc *p)
+targpoll(dev_t dev, int poll_events, struct thread *td)
{
struct cam_periph *periph;
struct targ_softc *softc;
@@ -1117,9 +1117,9 @@ targpoll(dev_t dev, int poll_events, struct proc *p)
if (revents == 0) {
if (poll_events & (POLLOUT | POLLWRNORM))
- selrecord(p, &softc->rcv_select);
+ selrecord(td, &softc->rcv_select);
if (poll_events & (POLLIN | POLLRDNORM))
- selrecord(p, &softc->snd_select);
+ selrecord(td, &softc->snd_select);
}
splx(s);
return (revents);
OpenPOWER on IntegriCloud