Lines Matching refs:socket
31 #include <sys/socket.h>
59 lck_group = lck_grp_alloc_init("socket filter lock", grp_attrib);
69 struct socket *so)
85 struct socket *so)
99 struct socket *so)
106 struct socket *so)
125 struct socket *so,
153 struct socket *so,
196 struct socket *so,
220 /* allocate the socket filter entry */
228 /* Initialize the socket filter entry and call the attach function */
253 /* Put the entry in the socket list */
276 * socket lock for the socket the entry is attached to. If you pass 1 in for
278 * list and the socket lock is not held.
305 * socket won't go away. Bump up the socket's
309 * socket's lock, so we can directly modify the
372 /* Remove from the socket list */
397 socket_t socket,
400 if (socket == NULL || handle == 0)
403 return sflt_attach_private(socket, NULL, handle, 0);
408 socket_t socket,
414 if (socket == NULL || handle == 0)
417 socket_lock(socket, 1);
419 for (filter = socket->so_filt; filter;
429 socket->so_filt = NULL;
433 socket_unlock(socket, 1);
459 /* Allocate the socket filter */
542 * to detach a socket from it (e.g. as part of close)
546 * reference hold on the socket so that it won't be