Date: Mon, 24 Jul 2006 15:20:08 +0000 (UTC) From: Robert Watson <rwatson@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern sys_socket.c uipc_domain.c uipc_socket.c uipc_syscalls.c uipc_usrreq.c src/sys/netgraph ng_ksocket.c src/sys/netgraph/bluetooth/socket ng_btsocket_rfcomm.c src/sys/netncp ncp_sock.c src/sys/netsmb smb_trantcp.c src/sys/nfsclient ... Message-ID: <200607241520.k6OFK8fq097011@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
rwatson 2006-07-24 15:20:08 UTC FreeBSD src repository Modified files: sys/kern sys_socket.c uipc_domain.c uipc_socket.c uipc_syscalls.c uipc_usrreq.c sys/netgraph ng_ksocket.c sys/netgraph/bluetooth/socket ng_btsocket_rfcomm.c sys/netncp ncp_sock.c sys/netsmb smb_trantcp.c sys/nfsclient nfs_socket.c sys/nfsserver nfs_srvsock.c sys/sys protosw.h socketvar.h Log: soreceive_generic(), and sopoll_generic(). Add new functions sosend(), soreceive(), and sopoll(), which are wrappers for pru_sosend, pru_soreceive, and pru_sopoll, and are now used univerally by socket consumers rather than either directly invoking the old so*() functions or directly invoking the protocol switch method (about an even split prior to this commit). This completes an architectural change that was begun in 1996 to permit protocols to provide substitute implementations, as now used by UDP. Consumers now uniformly invoke sosend(), soreceive(), and sopoll() to perform these operations on sockets -- in particular, distributed file systems and socket system calls. Architectural head nod: sam, gnn, wollman Revision Changes Path 1.70 +3 -5 src/sys/kern/sys_socket.c 1.48 +3 -3 src/sys/kern/uipc_domain.c 1.275 +52 -2 src/sys/kern/uipc_socket.c 1.233 +2 -4 src/sys/kern/uipc_syscalls.c 1.181 +3 -3 src/sys/kern/uipc_usrreq.c 1.22 +4 -5 src/sys/netgraph/bluetooth/socket/ng_btsocket_rfcomm.c 1.59 +3 -4 src/sys/netgraph/ng_ksocket.c 1.16 +8 -9 src/sys/netncp/ncp_sock.c 1.23 +4 -8 src/sys/netsmb/smb_trantcp.c 1.143 +6 -11 src/sys/nfsclient/nfs_socket.c 1.100 +3 -6 src/sys/nfsserver/nfs_srvsock.c 1.57 +0 -9 src/sys/sys/protosw.h 1.153 +8 -0 src/sys/sys/socketvar.h
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200607241520.k6OFK8fq097011>