diff options
author | julian <julian@FreeBSD.org> | 2001-09-12 08:38:13 +0000 |
---|---|---|
committer | julian <julian@FreeBSD.org> | 2001-09-12 08:38:13 +0000 |
commit | 5596676e6c6c1e81e899cd0531f9b1c28a292669 (patch) | |
tree | b1a19fcdf05759281fab0d89efb13f0fdf42102e /sys/cam | |
parent | 83e00d4274950d2b531c24692cd123538ffbddb9 (diff) | |
download | FreeBSD-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')
-rw-r--r-- | sys/cam/cam_xpt.c | 6 | ||||
-rw-r--r-- | sys/cam/scsi/scsi_cd.c | 6 | ||||
-rw-r--r-- | sys/cam/scsi/scsi_ch.c | 6 | ||||
-rw-r--r-- | sys/cam/scsi/scsi_da.c | 6 | ||||
-rw-r--r-- | sys/cam/scsi/scsi_pass.c | 6 | ||||
-rw-r--r-- | sys/cam/scsi/scsi_pt.c | 6 | ||||
-rw-r--r-- | sys/cam/scsi/scsi_sa.c | 6 | ||||
-rw-r--r-- | sys/cam/scsi/scsi_ses.c | 6 | ||||
-rw-r--r-- | sys/cam/scsi/scsi_target.c | 12 |
9 files changed, 30 insertions, 30 deletions
diff --git a/sys/cam/cam_xpt.c b/sys/cam/cam_xpt.c index 9d5ee8f..b3a31fd 100644 --- a/sys/cam/cam_xpt.c +++ b/sys/cam/cam_xpt.c @@ -909,7 +909,7 @@ xptdone(struct cam_periph *periph, union ccb *done_ccb) } static int -xptopen(dev_t dev, int flags, int fmt, struct proc *p) +xptopen(dev_t dev, int flags, int fmt, struct thread *td) { int unit; @@ -946,7 +946,7 @@ xptopen(dev_t dev, int flags, int fmt, struct proc *p) } static int -xptclose(dev_t dev, int flag, int fmt, struct proc *p) +xptclose(dev_t dev, int flag, int fmt, struct thread *td) { int unit; @@ -969,7 +969,7 @@ xptclose(dev_t dev, int flag, int fmt, struct proc *p) } static int -xptioctl(dev_t dev, u_long cmd, caddr_t addr, int flag, struct proc *p) +xptioctl(dev_t dev, u_long cmd, caddr_t addr, int flag, struct thread *td) { int unit, error; diff --git a/sys/cam/scsi/scsi_cd.c b/sys/cam/scsi/scsi_cd.c index 923b4bd..09fe6a8 100644 --- a/sys/cam/scsi/scsi_cd.c +++ b/sys/cam/scsi/scsi_cd.c @@ -873,7 +873,7 @@ cdregisterexit: } static int -cdopen(dev_t dev, int flags, int fmt, struct proc *p) +cdopen(dev_t dev, int flags, int fmt, struct thread *td) { struct disklabel *label; struct cam_periph *periph; @@ -985,7 +985,7 @@ cdopen(dev_t dev, int flags, int fmt, struct proc *p) } static int -cdclose(dev_t dev, int flag, int fmt, struct proc *p) +cdclose(dev_t dev, int flag, int fmt, struct thread *td) { struct cam_periph *periph; struct cd_softc *softc; @@ -1806,7 +1806,7 @@ cddone(struct cam_periph *periph, union ccb *done_ccb) } static int -cdioctl(dev_t dev, u_long cmd, caddr_t addr, int flag, struct proc *p) +cdioctl(dev_t dev, u_long cmd, caddr_t addr, int flag, struct thread *td) { struct cam_periph *periph; diff --git a/sys/cam/scsi/scsi_ch.c b/sys/cam/scsi/scsi_ch.c index 7d9bba3..2e6a40d 100644 --- a/sys/cam/scsi/scsi_ch.c +++ b/sys/cam/scsi/scsi_ch.c @@ -424,7 +424,7 @@ chregister(struct cam_periph *periph, void *arg) } static int -chopen(dev_t dev, int flags, int fmt, struct proc *p) +chopen(dev_t dev, int flags, int fmt, struct thread *td) { struct cam_periph *periph; struct ch_softc *softc; @@ -474,7 +474,7 @@ chopen(dev_t dev, int flags, int fmt, struct proc *p) } static int -chclose(dev_t dev, int flag, int fmt, struct proc *p) +chclose(dev_t dev, int flag, int fmt, struct thread *td) { struct cam_periph *periph; struct ch_softc *softc; @@ -724,7 +724,7 @@ cherror(union ccb *ccb, u_int32_t cam_flags, u_int32_t sense_flags) } static int -chioctl(dev_t dev, u_long cmd, caddr_t addr, int flag, struct proc *p) +chioctl(dev_t dev, u_long cmd, caddr_t addr, int flag, struct thread *td) { struct cam_periph *periph; struct ch_softc *softc; diff --git a/sys/cam/scsi/scsi_da.c b/sys/cam/scsi/scsi_da.c index a402ec0..104cff5 100644 --- a/sys/cam/scsi/scsi_da.c +++ b/sys/cam/scsi/scsi_da.c @@ -378,7 +378,7 @@ static SLIST_HEAD(,da_softc) softc_list; static struct extend_array *daperiphs; static int -daopen(dev_t dev, int flags, int fmt, struct proc *p) +daopen(dev_t dev, int flags, int fmt, struct thread *td) { struct cam_periph *periph; struct da_softc *softc; @@ -501,7 +501,7 @@ daopen(dev_t dev, int flags, int fmt, struct proc *p) } static int -daclose(dev_t dev, int flag, int fmt, struct proc *p) +daclose(dev_t dev, int flag, int fmt, struct thread *td) { struct cam_periph *periph; struct da_softc *softc; @@ -651,7 +651,7 @@ dastrategy(struct bio *bp) #endif static int -daioctl(dev_t dev, u_long cmd, caddr_t addr, int flag, struct proc *p) +daioctl(dev_t dev, u_long cmd, caddr_t addr, int flag, struct thread *td) { struct cam_periph *periph; struct da_softc *softc; diff --git a/sys/cam/scsi/scsi_pass.c b/sys/cam/scsi/scsi_pass.c index c6ed554..e81de98 100644 --- a/sys/cam/scsi/scsi_pass.c +++ b/sys/cam/scsi/scsi_pass.c @@ -341,7 +341,7 @@ passregister(struct cam_periph *periph, void *arg) } static int -passopen(dev_t dev, int flags, int fmt, struct proc *p) +passopen(dev_t dev, int flags, int fmt, struct thread *td) { struct cam_periph *periph; struct pass_softc *softc; @@ -412,7 +412,7 @@ passopen(dev_t dev, int flags, int fmt, struct proc *p) } static int -passclose(dev_t dev, int flag, int fmt, struct proc *p) +passclose(dev_t dev, int flag, int fmt, struct thread *td) { struct cam_periph *periph; struct pass_softc *softc; @@ -478,7 +478,7 @@ passdone(struct cam_periph *periph, union ccb *done_ccb) } static int -passioctl(dev_t dev, u_long cmd, caddr_t addr, int flag, struct proc *p) +passioctl(dev_t dev, u_long cmd, caddr_t addr, int flag, struct thread *td) { struct cam_periph *periph; struct pass_softc *softc; diff --git a/sys/cam/scsi/scsi_pt.c b/sys/cam/scsi/scsi_pt.c index 0211d4d..4e62bc2 100644 --- a/sys/cam/scsi/scsi_pt.c +++ b/sys/cam/scsi/scsi_pt.c @@ -141,7 +141,7 @@ static struct extend_array *ptperiphs; #endif static int -ptopen(dev_t dev, int flags, int fmt, struct proc *p) +ptopen(dev_t dev, int flags, int fmt, struct thread *td) { struct cam_periph *periph; struct pt_softc *softc; @@ -185,7 +185,7 @@ ptopen(dev_t dev, int flags, int fmt, struct proc *p) } static int -ptclose(dev_t dev, int flag, int fmt, struct proc *p) +ptclose(dev_t dev, int flag, int fmt, struct thread *td) { struct cam_periph *periph; struct pt_softc *softc; @@ -678,7 +678,7 @@ pterror(union ccb *ccb, u_int32_t cam_flags, u_int32_t sense_flags) } static int -ptioctl(dev_t dev, u_long cmd, caddr_t addr, int flag, struct proc *p) +ptioctl(dev_t dev, u_long cmd, caddr_t addr, int flag, struct thread *td) { struct cam_periph *periph; struct pt_softc *softc; diff --git a/sys/cam/scsi/scsi_sa.c b/sys/cam/scsi/scsi_sa.c index 51edca1..ede582c 100644 --- a/sys/cam/scsi/scsi_sa.c +++ b/sys/cam/scsi/scsi_sa.c @@ -440,7 +440,7 @@ static struct cdevsw sa_cdevsw = { static struct extend_array *saperiphs; static int -saopen(dev_t dev, int flags, int fmt, struct proc *p) +saopen(dev_t dev, int flags, int fmt, struct thread *td) { struct cam_periph *periph; struct sa_softc *softc; @@ -504,7 +504,7 @@ saopen(dev_t dev, int flags, int fmt, struct proc *p) } static int -saclose(dev_t dev, int flag, int fmt, struct proc *p) +saclose(dev_t dev, int flag, int fmt, struct thread *td) { struct cam_periph *periph; struct sa_softc *softc; @@ -761,7 +761,7 @@ sastrategy(struct bio *bp) } static int -saioctl(dev_t dev, u_long cmd, caddr_t arg, int flag, struct proc *p) +saioctl(dev_t dev, u_long cmd, caddr_t arg, int flag, struct thread *td) { struct cam_periph *periph; struct sa_softc *softc; diff --git a/sys/cam/scsi/scsi_ses.c b/sys/cam/scsi/scsi_ses.c index 635556e..62d2092 100644 --- a/sys/cam/scsi/scsi_ses.c +++ b/sys/cam/scsi/scsi_ses.c @@ -426,7 +426,7 @@ sesregister(struct cam_periph *periph, void *arg) } static int -sesopen(dev_t dev, int flags, int fmt, struct proc *p) +sesopen(dev_t dev, int flags, int fmt, struct thread *td) { struct cam_periph *periph; struct ses_softc *softc; @@ -482,7 +482,7 @@ out: } static int -sesclose(dev_t dev, int flag, int fmt, struct proc *p) +sesclose(dev_t dev, int flag, int fmt, struct thread *td) { struct cam_periph *periph; struct ses_softc *softc; @@ -539,7 +539,7 @@ seserror(union ccb *ccb, u_int32_t cflags, u_int32_t sflags) } static int -sesioctl(dev_t dev, u_long cmd, caddr_t arg_addr, int flag, struct proc *p) +sesioctl(dev_t dev, u_long cmd, caddr_t arg_addr, int flag, struct thread *td) { struct cam_periph *periph; ses_encstat tmp; 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); |