diff options
author | sam <sam@FreeBSD.org> | 2003-11-26 01:40:44 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2003-11-26 01:40:44 +0000 |
commit | 960b35f03a6c555c26345ba9adaa33039083e66f (patch) | |
tree | e73f0c0da8c8ad5f7e26fc7d6c55d52ecd1d54f9 /sys/netinet/in_pcb.h | |
parent | f3a38bd433ebca6fe0d7bf5080f05b08225865d9 (diff) | |
download | FreeBSD-src-960b35f03a6c555c26345ba9adaa33039083e66f.zip FreeBSD-src-960b35f03a6c555c26345ba9adaa33039083e66f.tar.gz |
Split the "inp" mutex class into separate classes for each of divert,
raw, tcp, udp, raw6, and udp6 sockets to avoid spurious witness
complaints.
Reviewed by: rwatson
Approved by: re (rwatson)
Diffstat (limited to 'sys/netinet/in_pcb.h')
-rw-r--r-- | sys/netinet/in_pcb.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/netinet/in_pcb.h b/sys/netinet/in_pcb.h index 5e93328..cb9b20d 100644 --- a/sys/netinet/in_pcb.h +++ b/sys/netinet/in_pcb.h @@ -242,8 +242,8 @@ struct inpcbinfo { /* XXX documentation, prefixes */ * this code is shared by both IPv4 and IPv6 and IPv6 is * not properly locked. */ -#define INP_LOCK_INIT(inp, d) \ - mtx_init(&(inp)->inp_mtx, (d), NULL, MTX_DEF | MTX_RECURSE | MTX_DUPOK) +#define INP_LOCK_INIT(inp, d, t) \ + mtx_init(&(inp)->inp_mtx, (d), (t), MTX_DEF | MTX_RECURSE | MTX_DUPOK) #define INP_LOCK_DESTROY(inp) mtx_destroy(&(inp)->inp_mtx) #define INP_LOCK(inp) mtx_lock(&(inp)->inp_mtx) #define INP_UNLOCK(inp) mtx_unlock(&(inp)->inp_mtx) @@ -337,7 +337,8 @@ extern int ipport_hifirstauto; extern int ipport_hilastauto; void in_pcbpurgeif0(struct inpcbinfo *, struct ifnet *); -int in_pcballoc(struct socket *, struct inpcbinfo *, struct thread *); +int in_pcballoc(struct socket *, struct inpcbinfo *, struct thread *, + const char *); int in_pcbbind(struct inpcb *, struct sockaddr *, struct thread *); int in_pcbbind_setup(struct inpcb *, struct sockaddr *, in_addr_t *, u_short *, struct thread *); |