summaryrefslogtreecommitdiffstats
path: root/sys/netkey
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/netkey
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/netkey')
-rw-r--r--sys/netkey/keysock.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/sys/netkey/keysock.c b/sys/netkey/keysock.c
index 5eab147..76f6482 100644
--- a/sys/netkey/keysock.c
+++ b/sys/netkey/keysock.c
@@ -411,7 +411,7 @@ key_abort(struct socket *so)
* derived from net/rtsock.c:rts_attach()
*/
static int
-key_attach(struct socket *so, int proto, struct proc *p)
+key_attach(struct socket *so, int proto, struct thread *td)
{
struct keycb *kp;
int s, error;
@@ -432,7 +432,7 @@ key_attach(struct socket *so, int proto, struct proc *p)
*/
s = splnet();
so->so_pcb = (caddr_t)kp;
- error = raw_usrreqs.pru_attach(so, proto, p);
+ error = raw_usrreqs.pru_attach(so, proto, td);
kp = (struct keycb *)sotorawcb(so);
if (error) {
free(kp, M_PCB);
@@ -461,11 +461,11 @@ key_attach(struct socket *so, int proto, struct proc *p)
* derived from net/rtsock.c:rts_bind()
*/
static int
-key_bind(struct socket *so, struct sockaddr *nam, struct proc *p)
+key_bind(struct socket *so, struct sockaddr *nam, struct thread *td)
{
int s, error;
s = splnet();
- error = raw_usrreqs.pru_bind(so, nam, p); /* xxx just EINVAL */
+ error = raw_usrreqs.pru_bind(so, nam, td); /* xxx just EINVAL */
splx(s);
return error;
}
@@ -475,11 +475,11 @@ key_bind(struct socket *so, struct sockaddr *nam, struct proc *p)
* derived from net/rtsock.c:rts_connect()
*/
static int
-key_connect(struct socket *so, struct sockaddr *nam, struct proc *p)
+key_connect(struct socket *so, struct sockaddr *nam, struct thread *td)
{
int s, error;
s = splnet();
- error = raw_usrreqs.pru_connect(so, nam, p); /* XXX just EINVAL */
+ error = raw_usrreqs.pru_connect(so, nam, td); /* XXX just EINVAL */
splx(s);
return error;
}
@@ -542,11 +542,11 @@ key_peeraddr(struct socket *so, struct sockaddr **nam)
*/
static int
key_send(struct socket *so, int flags, struct mbuf *m, struct sockaddr *nam,
- struct mbuf *control, struct proc *p)
+ struct mbuf *control, struct thread *td)
{
int s, error;
s = splnet();
- error = raw_usrreqs.pru_send(so, flags, m, nam, control, p);
+ error = raw_usrreqs.pru_send(so, flags, m, nam, control, td);
splx(s);
return error;
}
OpenPOWER on IntegriCloud