| /xnu-12377.41.6/bsd/kern/ |
| H A D | socket_info.c | 81 si->soi_pcb = (u_int64_t)VM_KERNEL_ADDRHASH(so->so_pcb); in fill_common_sockinfo() 116 if (so->so_pcb == NULL || so->so_proto == 0 || in fill_socketinfo() 132 struct inpcb *inp = (struct inpcb *)so->so_pcb; in fill_socketinfo() 174 struct unpcb *unp = (struct unpcb *)so->so_pcb; in fill_socketinfo() 207 struct ndrv_cb *ndrv_cb = (struct ndrv_cb *)so->so_pcb; in fill_socketinfo() 223 const struct vsockpcb *pcb = (struct vsockpcb *)(so)->so_pcb; in fill_socketinfo() 238 (struct kern_event_pcb *)so->so_pcb; in fill_socketinfo()
|
| H A D | kern_control.c | 309 so->so_pcb = (caddr_t)kcb; in ctl_attach() 326 struct ctl_cb *__single kcb = (struct ctl_cb *)so->so_pcb; in ctl_sofreelastref() 328 so->so_pcb = 0; in ctl_sofreelastref() 392 struct ctl_cb *__single kcb = (struct ctl_cb *)so->so_pcb; in ctl_detach() 430 struct ctl_cb *__single kcb = (struct ctl_cb *)so->so_pcb; in ctl_setup_kctl() 554 struct ctl_cb *__single kcb = (struct ctl_cb *)so->so_pcb; in ctl_bind() 592 struct ctl_cb *__single kcb = (struct ctl_cb *)so->so_pcb; in ctl_connect() 668 struct ctl_cb *__single kcb = (struct ctl_cb *)so->so_pcb; in ctl_disconnect() 670 if ((kcb = (struct ctl_cb *)so->so_pcb)) { in ctl_disconnect() 714 struct ctl_cb *__single kcb = (struct ctl_cb *)so->so_pcb; in ctl_peeraddr() [all …]
|
| H A D | uipc_usrreq.c | 1025 so->so_pcb = (caddr_t)unp; in unp_attach() 1365 if (so2->so_pcb == NULL) { in unp_connect() 1667 if ((((struct unpcb *)waitso->so_pcb)->unp_flags & UNP_DONTDISCONNECT) != 0) { in unp_disconnect() 1673 (void)msleep(waitso->so_pcb, &unp->unp_mtx, in unp_disconnect() 2849 if (so->so_pcb) { in unp_lock() 2850 lck_mtx_lock(&((struct unpcb *)so->so_pcb)->unp_mtx); in unp_lock() 2858 so, so->so_pcb, lr_saved, so->so_usecount); in unp_lock() 2890 if (so->so_pcb == NULL) { in unp_unlock() 2893 mutex_held = &((struct unpcb *)so->so_pcb)->unp_mtx; in unp_unlock() 2921 struct unpcb *unp = (struct unpcb *)so->so_pcb; in unp_getlock() [all …]
|
| H A D | vsock_domain.c | 45 #define sotovsockpcb(so) ((struct vsockpcb *)(so)->so_pcb) 994 so->so_pcb = pcb; in vsock_attach() 1000 so->so_pcb = NULL; in vsock_attach() 1553 so->so_pcb = NULL; in vsock_sofreelastref()
|
| H A D | uipc_socket.c | 613 if (so->so_pcb != NULL) { in socreate_internal() 1257 if (so->so_pcb == NULL) { in soclose_locked() 1306 if (so->so_pcb != NULL && !(so->so_flags & SOF_PCBCLEARING)) { in soclose_locked() 1317 if (so->so_pcb != NULL && !(so->so_flags & SOF_MP_SUBFLOW) && in soclose_locked() 3482 if ((pr->pr_flags & PR_WANTRCVD) && so->so_pcb != NULL) { in soreceive() 3790 if ((pr->pr_flags & PR_WANTRCVD) && so->so_pcb != NULL) { in soreceive() 3884 if (pr->pr_flags & PR_WANTRCVD && so->so_pcb) { in soreceive() 4253 if (pr->pr_flags & PR_WANTRCVD && so->so_pcb != NULL) { in soreceive_m_list() 4890 (struct unpcb *)(so->so_pcb); in sosetoptlock() 4915 (struct unpcb *)(so->so_pcb); in sosetoptlock() [all …]
|
| H A D | kern_event.c | 8653 struct kern_event_pcb *ev_pcb = (struct kern_event_pcb *)so->so_pcb; 8655 if (so->so_pcb != NULL) { 8680 if (so->so_pcb != NULL) { 8681 lck_mtx_lock(&((struct kern_event_pcb *)so->so_pcb)->evp_mtx); 8690 so, so->so_pcb, lr_saved, so->so_usecount, 8724 if (so->so_pcb == NULL) { 8730 mutex_held = (&((struct kern_event_pcb *)so->so_pcb)->evp_mtx); 8749 struct kern_event_pcb *ev_pcb = (struct kern_event_pcb *)so->so_pcb; 8753 so->so_pcb = NULL; 8820 so->so_pcb = (caddr_t) ev_pcb; [all …]
|
| H A D | uipc_socket2.c | 2816 xso->so_pcb = (_XSOCKET_PTR(caddr_t))VM_KERNEL_ADDRHASH(so->so_pcb); in sotoxsocket() 2847 xso->so_pcb = (u_int64_t)VM_KERNEL_ADDRHASH(so->so_pcb); in sotoxsocket64()
|
| /xnu-12377.41.6/bsd/net/ |
| H A D | raw_cb.h | 81 #define sotorawcb(so) ((struct rawcb *)(so)->so_pcb)
|
| H A D | ndrv_var.h | 72 #define sotondrvcb(so) ((struct ndrv_cb *)(so)->so_pcb)
|
| H A D | raw_cb.c | 128 so->so_pcb = 0; in raw_detach_nofree()
|
| H A D | ndrv.c | 263 so->so_pcb = (caddr_t)np; in ndrv_attach() 645 so->so_pcb = 0; in ndrv_do_detach()
|
| H A D | rtsock.c | 190 VERIFY(so->so_pcb == NULL); in rts_attach() 193 so->so_pcb = (caddr_t)rp; in rts_attach() 199 so->so_pcb = NULL; in rts_attach()
|
| /xnu-12377.41.6/bsd/sys/ |
| H A D | kern_event_private.h | 79 #define sotoevpcb(so) ((struct kern_event_pcb *)((so)->so_pcb))
|
| H A D | unpcb.h | 125 #define sotounpcb(so) ((struct unpcb *)((so)->so_pcb))
|
| H A D | socketvar.h | 140 void *so_pcb; /* protocol control block */ member 447 _XSOCKET_PTR(caddr_t) so_pcb; /* another convenient handle */ 470 u_int64_t so_pcb; /* another convenient handle */ member 506 u_int64_t so_pcb; /* another convenient handle */ member
|
| /xnu-12377.41.6/bsd/netinet/ |
| H A D | mp_pcb.h | 72 return (struct mppcb *)mp_so->so_pcb; in mpsotomppcb()
|
| H A D | mp_pcb.c | 211 so->so_pcb = mpp; in mp_pcballoc() 289 mpp->mpp_socket->so_pcb = NULL; in mptcp_pcbdispose()
|
| H A D | in_pcb.c | 718 so->so_pcb = (caddr_t)inp; in in_pcballoc() 1968 if (so->so_pcb == NULL) { in in_pcbdetach() 2127 so->so_pcb = NULL; in in_pcbdispose() 4199 struct inpcb *inp = (struct inpcb *)so->so_pcb; in inp_incr_sndbytes_total() 4211 struct inpcb *inp = (struct inpcb *)so->so_pcb; in inp_decr_sndbytes_total() 4226 struct inpcb *inp = (struct inpcb *)so->so_pcb; in inp_incr_sndbytes_unsent() 4242 struct inpcb *inp = (struct inpcb *)so->so_pcb; in inp_decr_sndbytes_unsent() 4321 struct inpcb *inp = (struct inpcb *)so->so_pcb; in inp_update_last_owner() 4345 struct inpcb *inp = (struct inpcb *)so->so_pcb; in inp_copy_last_owner() 4346 struct inpcb *head_inp = (struct inpcb *)head->so_pcb; in inp_copy_last_owner() [all …]
|
| H A D | in_pcblist.c | 126 xso->so_pcb = (uint64_t)VM_KERNEL_ADDRHASH(so->so_pcb); in sotoxsocket_n() 894 inp = (struct inpcb *)so->so_pcb; in shutdown_sockets_on_interface_proc_callout()
|
| H A D | udp_usrreq.c | 2336 inp = (struct inpcb *)so->so_pcb; in udp_attach() 2691 if (so->so_pcb != NULL) { in udp_lock() 2692 LCK_MTX_ASSERT(&((struct inpcb *)so->so_pcb)->inpcb_mtx, in udp_lock() 2694 lck_mtx_lock(&((struct inpcb *)so->so_pcb)->inpcb_mtx); in udp_lock() 2724 if (so->so_pcb == NULL) { in udp_unlock() 2729 LCK_MTX_ASSERT(&((struct inpcb *)so->so_pcb)->inpcb_mtx, in udp_unlock() 2733 lck_mtx_unlock(&((struct inpcb *)so->so_pcb)->inpcb_mtx); in udp_unlock() 2744 if (so->so_pcb == NULL) { in udp_getlock()
|
| H A D | tcp_subr.c | 3501 if (so->so_pcb != NULL) { in tcp_lock() 3517 lck_mtx_lock(&((struct inpcb *)so->so_pcb)->inpcb_mtx); in tcp_lock() 3524 lck_mtx_unlock(&((struct inpcb *)so->so_pcb)->inpcb_mtx); in tcp_lock() 3536 so, so->so_pcb, lr_saved, so->so_usecount, in tcp_lock() 3557 (uint64_t)VM_KERNEL_ADDRPERM(so->so_pcb), in tcp_unlock() 3570 if (so->so_pcb == NULL) { in tcp_unlock() 3586 LCK_MTX_ASSERT(&((struct inpcb *)so->so_pcb)->inpcb_mtx, in tcp_unlock() 3588 lck_mtx_unlock(&((struct inpcb *)so->so_pcb)->inpcb_mtx); in tcp_unlock() 3599 if (so->so_pcb) { in tcp_getlock()
|
| H A D | in_pcb.h | 879 #define sotoinpcb(so) ((struct inpcb *)(so)->so_pcb)
|
| /xnu-12377.41.6/bsd/netkey/ |
| H A D | keysock.c | 395 so->so_pcb = (caddr_t)kp; in key_attach() 403 so->so_pcb = (caddr_t) 0; in key_attach()
|
| /xnu-12377.41.6/bsd/security/audit/ |
| H A D | audit_arg.c | 594 if (so->so_pcb == NULL) { in audit_arg_file() 601 pcb = (struct inpcb *)so->so_pcb; in audit_arg_file() 613 if (so->so_pcb == NULL) { in audit_arg_file() 620 pcb = (struct inpcb *)so->so_pcb; in audit_arg_file()
|
| /xnu-12377.41.6/tools/lldbmacros/ |
| H A D | net.py | 462 inpcb = Cast(sock.so_pcb, 'inpcb *') 498 pcb = Cast(sock.so_pcb, 'inpcb *') 514 pcb = Cast(sock.so_pcb, 'inpcb *') 530 pcb = Cast(sock.so_pcb, 'unpcb *') 542 pcb = Cast(sock.so_pcb, 'vsockpcb *')
|