| /xnu-12377.41.6/bsd/net/ |
| H A D | raw_usrreq.c | 173 if (so->so_proto->pr_getlock != NULL) { in raw_uabort() 174 mutex_held = (*so->so_proto->pr_getlock)(so, 0); in raw_uabort() 176 mutex_held = so->so_proto->pr_domain->dom_mtx; in raw_uabort() 226 if (so->so_proto->pr_getlock != NULL) { in raw_udetach() 227 mutex_held = (*so->so_proto->pr_getlock)(so, 0); in raw_udetach() 229 mutex_held = so->so_proto->pr_domain->dom_mtx; in raw_udetach() 285 if (so->so_proto->pr_getlock != NULL) { in raw_usend() 286 mutex_held = (*so->so_proto->pr_getlock)(so, 0); in raw_usend() 288 mutex_held = so->so_proto->pr_domain->dom_mtx; in raw_usend() 302 if (so->so_proto->pr_output == NULL) { in raw_usend() [all …]
|
| H A D | content_filter.c | 1556 if (so->so_proto->pr_getlock != NULL) { in cfil_acquire_sockbuf() 1557 mutex_held = (*so->so_proto->pr_getlock)(so, PR_F_WILLUNLOCK); in cfil_acquire_sockbuf() 1559 mutex_held = so->so_proto->pr_domain->dom_mtx; in cfil_acquire_sockbuf() 2241 if (sock->so_proto == NULL || sock->so_proto->pr_domain == NULL) { in cfil_ctl_getopt() 3419 if (so->so_proto == NULL || so->so_proto->pr_domain == NULL) { in cfil_dispatch_attach_event() 5640 if (so->so_proto->pr_getlock != NULL) { in cfil_sock_close_wait() 5641 mutex_held = (*so->so_proto->pr_getlock)(so, PR_F_WILLUNLOCK); in cfil_sock_close_wait() 5643 mutex_held = so->so_proto->pr_domain->dom_mtx; in cfil_sock_close_wait() 5927 if (so != NULL && so->so_proto != NULL && so->so_proto->pr_domain != NULL) { in sysctl_cfil_sock_list() 6562 if (so->so_proto->pr_getlock != NULL) { in cfil_filters_udp_attached() [all …]
|
| H A D | if.c | 3364 if (so->so_proto == NULL) { in ifioctl() 3791 if (so->so_proto == NULL) { in ifioctl() 3797 error = ((*so->so_proto->pr_usrreqs->pru_control)(so, cmd, in ifioctl() 4525 VERIFY(so->so_proto != NULL); in ifioctl_ifreq() 4551 error = ((*so->so_proto->pr_usrreqs->pru_control)(so, cmd, in ifioctl_ifreq()
|
| /xnu-12377.41.6/bsd/kern/ |
| H A D | uipc_socket.c | 417 if (so->so_proto != NULL && so->so_proto->pr_update_last_owner != NULL) { in so_update_last_owner_locked() 418 (*so->so_proto->pr_update_last_owner)(so, self, NULL); in so_update_last_owner_locked() 591 so->so_proto = prp; in socreate_internal() 597 proto_memacct_add(so->so_proto, sizeof(struct socket)); in socreate_internal() 780 error = (*so->so_proto->pr_usrreqs->pru_bind)(so, nam, p); in sobindlock() 797 proto_memacct_sub(so->so_proto, sizeof(struct socket)); in sodealloc() 847 if (so->so_proto == NULL) { in solisten() 852 if ((so->so_proto->pr_flags & PR_CONNREQUIRED) == 0) { in solisten() 886 error = (*so->so_proto->pr_usrreqs->pru_listen)(so, p); in solisten() 950 if (head->so_proto->pr_getlock == NULL) { in so_acquire_accept_list() [all …]
|
| H A D | kpi_socket.c | 105 if (sock->so_proto->pr_getlock != NULL) { in sock_accept_common() 106 mutex_held = (*sock->so_proto->pr_getlock)(sock, PR_F_WILLUNLOCK); in sock_accept_common() 109 mutex_held = sock->so_proto->pr_domain->dom_mtx; in sock_accept_common() 175 LCK_MTX_ASSERT(new_so->so_proto->pr_getlock(new_so, 0), in sock_accept_common() 305 if (sock->so_proto->pr_getlock != NULL) { in sock_connect() 306 mutex_held = (*sock->so_proto->pr_getlock)(sock, PR_F_WILLUNLOCK); in sock_connect() 308 mutex_held = sock->so_proto->pr_domain->dom_mtx; in sock_connect() 375 if (sock->so_proto->pr_getlock != NULL) { in sock_connectwait() 376 mutex_held = (*sock->so_proto->pr_getlock)(sock, PR_F_WILLUNLOCK); in sock_connectwait() 378 mutex_held = sock->so_proto->pr_domain->dom_mtx; in sock_connectwait() [all …]
|
| H A D | uipc_socket2.c | 217 if (head->so_proto->pr_getlock != NULL) { in soisconnected() 261 !(so->so_proto->pr_flags & PR_CONNREQUIRED) || in socanwrite() 332 if (head->so_proto->pr_getlock != NULL) { in sonewconn_internal() 333 mutex_held = (*head->so_proto->pr_getlock)(head, 0); in sonewconn_internal() 335 mutex_held = head->so_proto->pr_domain->dom_mtx; in sonewconn_internal() 364 if (proto_memacct_hardlimit(head->so_proto)) { in sonewconn_internal() 378 so->so_proto = head->so_proto; in sonewconn_internal() 414 proto_memacct_add(so->so_proto, sizeof(struct socket)); in sonewconn_internal() 427 if (head->so_proto->pr_unlock) { in sonewconn_internal() 430 if (((*so->so_proto->pr_usrreqs->pru_attach)(so, 0, NULL) != 0) || in sonewconn_internal() [all …]
|
| H A D | sys_socket.c | 128 fsoreceive = so->so_proto->pr_usrreqs->pru_soreceive; in soo_read() 151 fsosend = so->so_proto->pr_usrreqs->pru_sosend; in soo_write() 251 error = (*so->so_proto->pr_usrreqs->pru_control)(so, in soioctl() 267 error = (*so->so_proto->pr_usrreqs->pru_control)(so, in soioctl() 398 ret = (*so->so_proto->pr_usrreqs->pru_sense)(so, ub, isstat64); in soo_stat()
|
| H A D | socket_info.c | 82 if (so->so_proto) { in fill_common_sockinfo() 84 if (so->so_proto->pr_domain) { in fill_common_sockinfo() 116 if (so->so_pcb == NULL || so->so_proto == 0 || in fill_socketinfo() 117 so->so_proto->pr_domain == NULL) { in fill_socketinfo()
|
| H A D | uipc_syscalls.c | 494 if (head->so_proto->pr_getlock != NULL) { in accept_nocancel() 495 mutex_held = (*head->so_proto->pr_getlock)(head, PR_F_WILLUNLOCK); in accept_nocancel() 498 mutex_held = head->so_proto->pr_domain->dom_mtx; in accept_nocancel() 503 if ((head->so_proto->pr_flags & PR_CONNREQUIRED) == 0) { in accept_nocancel() 1038 if (so->so_proto->pr_getlock != NULL) { in connectit() 1039 mutex_held = (*so->so_proto->pr_getlock)(so, PR_F_WILLUNLOCK); in connectit() 1041 mutex_held = so->so_proto->pr_domain->dom_mtx; in connectit() 1112 if (so->so_proto->pr_getlock != NULL) { in connectitx() 1113 mutex_held = (*so->so_proto->pr_getlock)(so, PR_F_WILLUNLOCK); in connectitx() 1115 mutex_held = so->so_proto->pr_domain->dom_mtx; in connectitx() [all …]
|
| H A D | vsock_domain.c | 1251 if (so->so_proto->pr_getlock != NULL) { in vsock_connect() 1252 mutex_held = (*so->so_proto->pr_getlock)(so, PR_F_WILLUNLOCK); in vsock_connect() 1254 mutex_held = so->so_proto->pr_domain->dom_mtx; in vsock_connect() 1564 lck_mtx_t *mutex_held = so->so_proto->pr_domain->dom_mtx; in vsock_unlock()
|
| H A D | uipc_usrreq.c | 1400 if (so->so_proto->pr_flags & PR_CONNREQUIRED) { in unp_connect() 2626 if (so->so_proto->pr_domain != localdomain || in unp_gc() 2627 (so->so_proto->pr_flags & PR_RIGHTS) == 0) { in unp_gc() 2931 return so->so_proto->pr_domain->dom_mtx; in unp_getlock()
|
| H A D | kpi_socketfilter.c | 453 struct protosw *__single proto = so->so_proto->pr_protosw; in sflt_initsock()
|
| H A D | kern_control.c | 2138 return so->so_proto->pr_domain->dom_mtx;
|
| /xnu-12377.41.6/bsd/netinet/ |
| H A D | mptcp.c | 251 tcp_reass_qent_free(mp_so->so_proto, q); in mptcp_reass_present() 296 te = tcp_reass_qent_alloc(mp_so->so_proto); in mptcp_reass() 331 tcp_reass_qent_free(mp_so->so_proto, te); in mptcp_reass() 374 tcp_reass_qent_free(mp_so->so_proto, q); in mptcp_reass()
|
| H A D | mptcp_usrreq.c | 390 error = mp_so->so_proto->pr_usrreqs->pru_sosend(mp_so, NULL, in mptcp_usr_connectx() 1038 if (so->so_proto->pr_flags & PR_WANTRCVD && so->so_pcb != NULL) { in mptcp_usr_rcvd() 1039 (*so->so_proto->pr_usrreqs->pru_rcvd)(so, 0); in mptcp_usr_rcvd() 1337 error = (*mp_so->so_proto->pr_usrreqs->pru_send) in mptcp_usr_sosend()
|
| H A D | in_pcb.c | 699 if (proto_memacct_hardlimit(so->so_proto)) { in in_pcballoc() 705 proto_memacct_add(so->so_proto, kalloc_type_size(pcbinfo->ipi_zone)); in in_pcballoc() 723 if (so->so_proto->pr_flags & PR_PCBLOCK) { in in_pcballoc() 2102 if (so->so_proto->pr_flags & PR_PCBLOCK) { in in_pcbdispose() 2139 proto_memacct_sub(so->so_proto, kalloc_type_size(ipi->ipi_zone)); in in_pcbdispose() 4465 if (so->so_proto->pr_getlock != NULL) { in inp_enter_bind_in_progress() 4466 mutex_held = (*so->so_proto->pr_getlock)(so, PR_F_WILLUNLOCK); in inp_enter_bind_in_progress() 4468 mutex_held = so->so_proto->pr_domain->dom_mtx; in inp_enter_bind_in_progress()
|
| H A D | flow_divert.c | 2298 so->so_proto = pffindproto(SOCK_DOM(so), SOCK_PROTO(so), SOCK_TYPE(so)); in flow_divert_disable() 2311 …error = (*so->so_proto->pr_usrreqs->pru_connect)(so, remote_endpoint, (last_proc != NULL ? last_pr… in flow_divert_disable() 2341 error = (*so->so_proto->pr_usrreqs->pru_send)(so, in flow_divert_disable() 2427 error = (*so->so_proto->pr_usrreqs->pru_send)(so, in flow_divert_disable() 4007 error = so->so_proto->pr_usrreqs->pru_sosend(so, NULL, (uio_t)auio, NULL, NULL, 0); in flow_divert_connectx_out_common() 4182 so->so_proto = &g_flow_divert_in_protosw; in flow_divert_set_protosw() 4184 so->so_proto = (struct protosw *)&g_flow_divert_in6_protosw; in flow_divert_set_protosw() 4192 so->so_proto = &g_flow_divert_in_udp_protosw; in flow_divert_set_udp_protosw() 4194 so->so_proto = (struct protosw *)&g_flow_divert_in6_udp_protosw; in flow_divert_set_udp_protosw()
|
| H A D | raw_ip.c | 1190 lck_mtx_unlock(so->so_proto->pr_domain->dom_mtx); in rip_unlock() 1206 lck_mtx_unlock(so->so_proto->pr_domain->dom_mtx); in rip_unlock()
|
| H A D | mptcp_subr.c | 1510 subflow_mtx = ((*so)->so_proto->pr_getlock)(*so, 0); in mptcp_subflow_socreate() 1717 (*so)->so_proto = &mptcp_subflow_protosw; in mptcp_subflow_socreate() 1720 (*so)->so_proto = (struct protosw *)&mptcp_subflow_protosw6; in mptcp_subflow_socreate() 2028 VERIFY(so->so_proto->pr_flags & PR_CONNREQUIRED); in mptcp_subflow_soreceive() 2431 error = (*so->so_proto->pr_usrreqs->pru_send)(so, 0, top, NULL, NULL, p); in mptcp_subflow_sosend() 3109 error = (*so->so_proto->pr_usrreqs->pru_send)(so, 0, NULL, NULL, in mptcp_subflow_output() 3346 error = so->so_proto->pr_usrreqs->pru_sosend(so, NULL, NULL, head, NULL, 0); in mptcp_subflow_output() 6686 struct protosw *proto = mptetoso(mp_tp->mpt_mpte)->so_proto; in mptcp_freeq()
|
| H A D | in_pcblist.c | 127 if (so->so_proto) { in sotoxsocket_n()
|
| H A D | tcp_subr.c | 1687 te = tcp_reass_qent_alloc(tp->t_inpcb->inp_socket->so_proto); in tcp_create_reass_qent() 1718 tcp_reass_qent_free(tp->t_inpcb->inp_socket->so_proto, q); in tcp_destroy_reass_qent() 3609 return mp_so->so_proto->pr_getlock(mp_so, flags); in tcp_getlock() 3616 return so->so_proto->pr_domain->dom_mtx; in tcp_getlock()
|
| H A D | udp_usrreq.c | 2509 error = so->so_proto->pr_usrreqs->pru_sosend(so, NULL, in udp_connectx_common() 2517 (void) so->so_proto->pr_usrreqs->pru_disconnectx(so, in udp_connectx_common()
|
| H A D | tcp_usrreq.c | 750 error = so->so_proto->pr_usrreqs->pru_sosend(so, NULL, in tcp_usr_connectx_common()
|
| /xnu-12377.41.6/tools/lldbmacros/ |
| H A D | net.py | 463 if sock.so_proto.pr_protocol == 6: 466 if sock.so_proto.pr_protocol == 17: 468 if sock.so_proto.pr_protocol == 1: 470 if sock.so_proto.pr_protocol == 254: 472 if sock.so_proto.pr_protocol == 255: 559 domain = so.so_proto.pr_domain 590 domain = so.so_proto.pr_domain
|
| /xnu-12377.41.6/bsd/sys/ |
| H A D | socketvar.h | 141 struct protosw *so_proto; /* protocol handle */ member
|