diff options
author | phk <phk@FreeBSD.org> | 2004-11-08 14:44:54 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2004-11-08 14:44:54 +0000 |
commit | 027fce30f5a18628851fd5615769543ef2e8c6ac (patch) | |
tree | 49490960ea53cad45a1b8763ff91948d8f401931 /sys/sys/protosw.h | |
parent | d24107be6b63ca9ccbc6bca190ef874651886c49 (diff) | |
download | FreeBSD-src-027fce30f5a18628851fd5615769543ef2e8c6ac.zip FreeBSD-src-027fce30f5a18628851fd5615769543ef2e8c6ac.tar.gz |
Initialize struct pr_userreqs in new/sparse style and fill in common
default elements in net_init_domain().
This makes it possible to grep these structures and see any bogosities.
Diffstat (limited to 'sys/sys/protosw.h')
-rw-r--r-- | sys/sys/protosw.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/sys/protosw.h b/sys/sys/protosw.h index f4bb734..d93e452 100644 --- a/sys/sys/protosw.h +++ b/sys/sys/protosw.h @@ -190,8 +190,12 @@ struct uio; * Having this structure separated out from the main protoswitch is allegedly * a big (12 cycles per call) lose on high-end CPUs. We will eventually * migrate this stuff back into the main structure. + * + * Some fields initialized to defaults if they are NULL. + * See uipc_domain.c:net_init_domain() */ struct pr_usrreqs { + double __Break_the_struct_layout_for_now; int (*pru_abort)(struct socket *so); int (*pru_accept)(struct socket *so, struct sockaddr **nam); int (*pru_attach)(struct socket *so, int proto, struct thread *td); |