Once we distribute socket protocol processing requests to different
authorJeffrey Hsu <hsu@dragonflybsd.org>
Fri, 5 Mar 2004 16:57:16 +0000 (16:57 +0000)
committerJeffrey Hsu <hsu@dragonflybsd.org>
Fri, 5 Mar 2004 16:57:16 +0000 (16:57 +0000)
commite4700d005037e3f4546b85da39ea8640598c5d1a
tree314b2afb75196c8c3946095f2194ca49233df3ce
parentaa2c358eb33b743709ff9ea90beab2e032db0d67
Once we distribute socket protocol processing requests to different
processors, we no longer have a process context to refer to, so
eliminate the use of curproc in soreserve() by passing the sockbuf
resource limit all the down from the system call code to sbreserve().

Eliminate the use of curproc in unp_attach() by passing down the
fields it needs from the proc structure.  Define a pru_attach_info
structure to hold the information the attach usrreq function requires.

The thread argument to in_pcballoc() is unused, so we don't need
to pass a thread structure down to in_pcballoc().
30 files changed:
sys/kern/kern_prot.c
sys/kern/uipc_socket.c
sys/kern/uipc_socket2.c
sys/kern/uipc_usrreq.c
sys/net/raw_cb.c
sys/net/raw_cb.h
sys/net/raw_usrreq.c
sys/net/rtsock.c
sys/netgraph/socket/ng_socket.c
sys/netinet/in_pcb.c
sys/netinet/in_pcb.h
sys/netinet/ip_divert.c
sys/netinet/raw_ip.c
sys/netinet/tcp_usrreq.c
sys/netinet/udp_usrreq.c
sys/netinet6/raw_ip6.c
sys/netinet6/udp6_usrreq.c
sys/netproto/atm/atm_usrreq.c
sys/netproto/ipx/ipx_usrreq.c
sys/netproto/ipx/spx_usrreq.c
sys/netproto/key/keysock.c
sys/netproto/natm/natm.c
sys/netproto/smb/smb_trantcp.c
sys/sys/proc.h
sys/sys/protosw.h
sys/sys/socketops.h
sys/sys/socketvar.h
sys/vfs/nfs/nfs_socket.c
sys/vfs/nfs/nfs_syscalls.c
sys/vfs/portal/portal_vnops.c