Home
last modified time | relevance | path

Searched refs:so_proto (Results 1 – 24 of 24) sorted by relevance

/xnu-11417.140.69/bsd/net/
H A Draw_usrreq.c173 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 Dcontent_filter.c1559 if (so->so_proto->pr_getlock != NULL) { in cfil_acquire_sockbuf()
1560 mutex_held = (*so->so_proto->pr_getlock)(so, PR_F_WILLUNLOCK); in cfil_acquire_sockbuf()
1562 mutex_held = so->so_proto->pr_domain->dom_mtx; in cfil_acquire_sockbuf()
2244 if (sock->so_proto == NULL || sock->so_proto->pr_domain == NULL) { in cfil_ctl_getopt()
3422 if (so->so_proto == NULL || so->so_proto->pr_domain == NULL) { in cfil_dispatch_attach_event()
5643 if (so->so_proto->pr_getlock != NULL) { in cfil_sock_close_wait()
5644 mutex_held = (*so->so_proto->pr_getlock)(so, PR_F_WILLUNLOCK); in cfil_sock_close_wait()
5646 mutex_held = so->so_proto->pr_domain->dom_mtx; in cfil_sock_close_wait()
5930 if (so != NULL && so->so_proto != NULL && so->so_proto->pr_domain != NULL) { in sysctl_cfil_sock_list()
6565 if (so->so_proto->pr_getlock != NULL) { in cfil_filters_udp_attached()
[all …]
H A Dif.c3400 if (so->so_proto == NULL) { in ifioctl()
3821 if (so->so_proto == NULL) { in ifioctl()
3827 error = ((*so->so_proto->pr_usrreqs->pru_control)(so, cmd, in ifioctl()
4557 VERIFY(so->so_proto != NULL); in ifioctl_ifreq()
4583 error = ((*so->so_proto->pr_usrreqs->pru_control)(so, cmd, in ifioctl_ifreq()
/xnu-11417.140.69/bsd/kern/
H A Duipc_socket.c536 if (so->so_proto != NULL && so->so_proto->pr_update_last_owner != NULL) { in so_update_last_owner_locked()
537 (*so->so_proto->pr_update_last_owner)(so, self, NULL); in so_update_last_owner_locked()
751 so->so_proto = prp; in socreate_internal()
938 error = (*so->so_proto->pr_usrreqs->pru_bind)(so, nam, p); in sobindlock()
1007 if (so->so_proto == NULL) { in solisten()
1012 if ((so->so_proto->pr_flags & PR_CONNREQUIRED) == 0) { in solisten()
1046 error = (*so->so_proto->pr_usrreqs->pru_listen)(so, p); in solisten()
1110 if (head->so_proto->pr_getlock == NULL) { in so_acquire_accept_list()
1113 mutex_held = (*head->so_proto->pr_getlock)(head, PR_F_WILLUNLOCK); in so_acquire_accept_list()
1139 if (head->so_proto->pr_getlock != NULL) { in so_release_accept_list()
[all …]
H A Dkpi_socket.c105 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 Duipc_socket2.c215 if (head->so_proto->pr_getlock != NULL) { in soisconnected()
259 !(so->so_proto->pr_flags & PR_CONNREQUIRED) || in socanwrite()
330 if (head->so_proto->pr_getlock != NULL) { in sonewconn_internal()
331 mutex_held = (*head->so_proto->pr_getlock)(head, 0); in sonewconn_internal()
333 mutex_held = head->so_proto->pr_domain->dom_mtx; in sonewconn_internal()
367 if (head->so_proto == NULL) { in sonewconn_internal()
378 so->so_proto = head->so_proto; in sonewconn_internal()
425 if (head->so_proto->pr_unlock) { in sonewconn_internal()
428 if (((*so->so_proto->pr_usrreqs->pru_attach)(so, 0, NULL) != 0) || in sonewconn_internal()
431 if (head->so_proto->pr_unlock) { in sonewconn_internal()
[all …]
H A Dsys_socket.c128 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 Dsocket_info.c82 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 Duipc_syscalls.c494 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 Dvsock_domain.c1156 if (so->so_proto->pr_getlock != NULL) { in vsock_connect()
1157 mutex_held = (*so->so_proto->pr_getlock)(so, PR_F_WILLUNLOCK); in vsock_connect()
1159 mutex_held = so->so_proto->pr_domain->dom_mtx; in vsock_connect()
1453 lck_mtx_t *mutex_held = so->so_proto->pr_domain->dom_mtx; in vsock_unlock()
H A Duipc_usrreq.c1400 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 Dkpi_socketfilter.c453 struct protosw *__single proto = so->so_proto->pr_protosw; in sflt_initsock()
H A Dkern_control.c2138 return so->so_proto->pr_domain->dom_mtx;
/xnu-11417.140.69/tools/lldbmacros/
H A Dnet.py510 if sock.so_proto.pr_protocol == 6:
513 if sock.so_proto.pr_protocol == 17:
515 if sock.so_proto.pr_protocol == 1:
517 if sock.so_proto.pr_protocol == 254:
519 if sock.so_proto.pr_protocol == 255:
606 domain = so.so_proto.pr_domain
637 domain = so.so_proto.pr_domain
/xnu-11417.140.69/bsd/netinet/
H A Dmptcp_usrreq.c390 error = mp_so->so_proto->pr_usrreqs->pru_sosend(mp_so, NULL, in mptcp_usr_connectx()
1036 if (so->so_proto->pr_flags & PR_WANTRCVD && so->so_pcb != NULL) { in mptcp_usr_rcvd()
1037 (*so->so_proto->pr_usrreqs->pru_rcvd)(so, 0); in mptcp_usr_rcvd()
1335 error = (*mp_so->so_proto->pr_usrreqs->pru_send) in mptcp_usr_sosend()
H A Dflow_divert.c2270 so->so_proto = pffindproto(SOCK_DOM(so), SOCK_PROTO(so), SOCK_TYPE(so)); in flow_divert_disable()
2279 …error = (*so->so_proto->pr_usrreqs->pru_connect)(so, remote_endpoint, (last_proc != NULL ? last_pr… in flow_divert_disable()
2309 error = (*so->so_proto->pr_usrreqs->pru_send)(so, in flow_divert_disable()
2393 error = (*so->so_proto->pr_usrreqs->pru_send)(so, in flow_divert_disable()
3922 error = so->so_proto->pr_usrreqs->pru_sosend(so, NULL, (uio_t)auio, NULL, NULL, 0); in flow_divert_connectx_out_common()
4097 so->so_proto = &g_flow_divert_in_protosw; in flow_divert_set_protosw()
4099 so->so_proto = (struct protosw *)&g_flow_divert_in6_protosw; in flow_divert_set_protosw()
4107 so->so_proto = &g_flow_divert_in_udp_protosw; in flow_divert_set_udp_protosw()
4109 so->so_proto = (struct protosw *)&g_flow_divert_in6_udp_protosw; in flow_divert_set_udp_protosw()
H A Draw_ip.c1193 lck_mtx_unlock(so->so_proto->pr_domain->dom_mtx); in rip_unlock()
1209 lck_mtx_unlock(so->so_proto->pr_domain->dom_mtx); in rip_unlock()
H A Din_pcb.c765 if (so->so_proto->pr_flags & PR_PCBLOCK) { in in_pcballoc()
2143 if (so->so_proto->pr_flags & PR_PCBLOCK) { in in_pcbdispose()
4511 if (so->so_proto->pr_getlock != NULL) { in inp_enter_bind_in_progress()
4512 mutex_held = (*so->so_proto->pr_getlock)(so, PR_F_WILLUNLOCK); in inp_enter_bind_in_progress()
4514 mutex_held = so->so_proto->pr_domain->dom_mtx; in inp_enter_bind_in_progress()
H A Dmptcp_subr.c1510 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()
3104 error = (*so->so_proto->pr_usrreqs->pru_send)(so, 0, NULL, NULL, in mptcp_subflow_output()
3338 error = so->so_proto->pr_usrreqs->pru_sosend(so, NULL, NULL, head, NULL, 0); in mptcp_subflow_output()
H A Din_pcblist.c127 if (so->so_proto) { in sotoxsocket_n()
H A Dudp_usrreq.c2494 error = so->so_proto->pr_usrreqs->pru_sosend(so, NULL, in udp_connectx_common()
2502 (void) so->so_proto->pr_usrreqs->pru_disconnectx(so, in udp_connectx_common()
H A Dtcp_subr.c3364 return mp_so->so_proto->pr_getlock(mp_so, flags); in tcp_getlock()
3371 return so->so_proto->pr_domain->dom_mtx; in tcp_getlock()
H A Dtcp_usrreq.c750 error = so->so_proto->pr_usrreqs->pru_sosend(so, NULL, in tcp_usr_connectx_common()
/xnu-11417.140.69/bsd/sys/
H A Dsocketvar.h147 struct protosw *so_proto; /* protocol handle */ member