summaryrefslogtreecommitdiffstats
path: root/sys/sys/protosw.h
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/sys/protosw.h
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/sys/protosw.h')
-rw-r--r--sys/sys/protosw.h26
1 files changed, 13 insertions, 13 deletions
diff --git a/sys/sys/protosw.h b/sys/sys/protosw.h
index 3bff666..81ff300 100644
--- a/sys/sys/protosw.h
+++ b/sys/sys/protosw.h
@@ -44,7 +44,7 @@
/* Forward declare these structures referenced from prototypes below. */
struct mbuf;
-struct proc;
+struct thread;
struct sockaddr;
struct socket;
struct sockopt;
@@ -86,7 +86,7 @@ typedef void pr_slowtimo_t (void);
typedef void pr_drain_t (void);
typedef int pr_usrreq_t(struct socket *, int, struct mbuf *,
- struct mbuf *, struct mbuf *, struct proc *);
+ struct mbuf *, struct mbuf *, struct thread *);
struct protosw {
short pr_type; /* socket type used for */
@@ -199,17 +199,17 @@ struct pr_usrreqs {
int (*pru_abort) __P((struct socket *so));
int (*pru_accept) __P((struct socket *so, struct sockaddr **nam));
int (*pru_attach) __P((struct socket *so, int proto,
- struct proc *p));
+ struct thread *td));
int (*pru_bind) __P((struct socket *so, struct sockaddr *nam,
- struct proc *p));
+ struct thread *td));
int (*pru_connect) __P((struct socket *so, struct sockaddr *nam,
- struct proc *p));
+ struct thread *td));
int (*pru_connect2) __P((struct socket *so1, struct socket *so2));
int (*pru_control) __P((struct socket *so, u_long cmd, caddr_t data,
- struct ifnet *ifp, struct proc *p));
+ struct ifnet *ifp, struct thread *td));
int (*pru_detach) __P((struct socket *so));
int (*pru_disconnect) __P((struct socket *so));
- int (*pru_listen) __P((struct socket *so, struct proc *p));
+ int (*pru_listen) __P((struct socket *so, struct thread *td));
int (*pru_peeraddr) __P((struct socket *so,
struct sockaddr **nam));
int (*pru_rcvd) __P((struct socket *so, int flags));
@@ -217,7 +217,7 @@ struct pr_usrreqs {
int flags));
int (*pru_send) __P((struct socket *so, int flags, struct mbuf *m,
struct sockaddr *addr, struct mbuf *control,
- struct proc *p));
+ struct thread *td));
#define PRUS_OOB 0x1
#define PRUS_EOF 0x2
#define PRUS_MORETOCOME 0x4
@@ -237,22 +237,22 @@ struct pr_usrreqs {
int (*pru_sosend) __P((struct socket *so, struct sockaddr *addr,
struct uio *uio, struct mbuf *top,
struct mbuf *control, int flags,
- struct proc *p));
+ struct thread *td));
int (*pru_soreceive) __P((struct socket *so,
struct sockaddr **paddr,
struct uio *uio, struct mbuf **mp0,
struct mbuf **controlp, int *flagsp));
int (*pru_sopoll) __P((struct socket *so, int events,
- struct ucred *cred, struct proc *p));
+ struct ucred *cred, struct thread *td));
};
int pru_accept_notsupp __P((struct socket *so, struct sockaddr **nam));
int pru_connect_notsupp __P((struct socket *so, struct sockaddr *nam,
- struct proc *p));
+ struct thread *td));
int pru_connect2_notsupp __P((struct socket *so1, struct socket *so2));
int pru_control_notsupp __P((struct socket *so, u_long cmd, caddr_t data,
- struct ifnet *ifp, struct proc *p));
-int pru_listen_notsupp __P((struct socket *so, struct proc *p));
+ struct ifnet *ifp, struct thread *td));
+int pru_listen_notsupp __P((struct socket *so, struct thread *td));
int pru_rcvd_notsupp __P((struct socket *so, int flags));
int pru_rcvoob_notsupp __P((struct socket *so, struct mbuf *m, int flags));
int pru_sense_null __P((struct socket *so, struct stat *sb));
OpenPOWER on IntegriCloud