Changeset View
Changeset View
Standalone View
Standalone View
sys/kern/uipc_usrreq.c
Show First 20 Lines • Show All 1,894 Lines • ▼ Show 20 Lines | if (!error) { | ||||
xug->xug_count = unp_count; | xug->xug_count = unp_count; | ||||
error = SYSCTL_OUT(req, xug, sizeof *xug); | error = SYSCTL_OUT(req, xug, sizeof *xug); | ||||
} | } | ||||
free(unp_list, M_TEMP); | free(unp_list, M_TEMP); | ||||
free(xug, M_TEMP); | free(xug, M_TEMP); | ||||
return (error); | return (error); | ||||
} | } | ||||
SYSCTL_PROC(_net_local_dgram, OID_AUTO, pcblist, CTLTYPE_OPAQUE | CTLFLAG_RD, | SYSCTL_PROC(_net_local_dgram, OID_AUTO, pcblist, | ||||
CTLTYPE_OPAQUE | CTLFLAG_RD | CTLFLAG_NEEDGIANT, | |||||
(void *)(intptr_t)SOCK_DGRAM, 0, unp_pcblist, "S,xunpcb", | (void *)(intptr_t)SOCK_DGRAM, 0, unp_pcblist, "S,xunpcb", | ||||
"List of active local datagram sockets"); | "List of active local datagram sockets"); | ||||
SYSCTL_PROC(_net_local_stream, OID_AUTO, pcblist, CTLTYPE_OPAQUE | CTLFLAG_RD, | SYSCTL_PROC(_net_local_stream, OID_AUTO, pcblist, | ||||
CTLTYPE_OPAQUE | CTLFLAG_RD | CTLFLAG_NEEDGIANT, | |||||
(void *)(intptr_t)SOCK_STREAM, 0, unp_pcblist, "S,xunpcb", | (void *)(intptr_t)SOCK_STREAM, 0, unp_pcblist, "S,xunpcb", | ||||
"List of active local stream sockets"); | "List of active local stream sockets"); | ||||
SYSCTL_PROC(_net_local_seqpacket, OID_AUTO, pcblist, | SYSCTL_PROC(_net_local_seqpacket, OID_AUTO, pcblist, | ||||
CTLTYPE_OPAQUE | CTLFLAG_RD, | CTLTYPE_OPAQUE | CTLFLAG_RD | CTLFLAG_NEEDGIANT, | ||||
(void *)(intptr_t)SOCK_SEQPACKET, 0, unp_pcblist, "S,xunpcb", | (void *)(intptr_t)SOCK_SEQPACKET, 0, unp_pcblist, "S,xunpcb", | ||||
"List of active local seqpacket sockets"); | "List of active local seqpacket sockets"); | ||||
static void | static void | ||||
unp_shutdown(struct unpcb *unp) | unp_shutdown(struct unpcb *unp) | ||||
{ | { | ||||
struct unpcb *unp2; | struct unpcb *unp2; | ||||
struct socket *so; | struct socket *so; | ||||
▲ Show 20 Lines • Show All 943 Lines • Show Last 20 Lines |