CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2022/08/13 15:01:47
Modified files:
sys/kern : sys_socket.c uipc_socket.c uipc_socket2.c
uipc_syscalls.c
sys/net : if.c
sys/nfs : nfs_socket.c
sys/sys : protosw.h socketvar.h
Log message:
Introduce the pru_*() wrappers for corresponding (*pr_usrreq)() calls.
This is helpful for the following (*pr_usrreq)() split to multiple
handlers. But right now this makes code more readable.
Also add '#ifndef _SYS_SOCKETVAR_H_' to sys/socketvar.h. This prevents the
collisions when both sys/protosw.h and sys/socketvar.h are included
together. Both 'socket' and 'protosw' structures are required to be
defined before pru_*() wrappers, so we need to include sys/socketvar.h to
sys/protosw.h.
ok bluhm@