| /xnu-8020.140.41/bsd/kern/ |
| H A D | socket_info.c | 79 si->soi_pcb = (u_int64_t)VM_KERNEL_ADDRPERM(so->so_pcb); in fill_common_sockinfo() 114 if (so->so_pcb == NULL || so->so_proto == 0 || in fill_socketinfo() 130 struct inpcb *inp = (struct inpcb *)so->so_pcb; in fill_socketinfo() 172 struct unpcb *unp = (struct unpcb *)so->so_pcb; in fill_socketinfo() 204 struct ndrv_cb *ndrv_cb = (struct ndrv_cb *)so->so_pcb; in fill_socketinfo() 220 const struct vsockpcb *pcb = (struct vsockpcb *)(so)->so_pcb; in fill_socketinfo() 235 (struct kern_event_pcb *)so->so_pcb; in fill_socketinfo()
|
| H A D | kern_control.c | 303 so->so_pcb = (caddr_t)kcb; in ctl_attach() 311 struct ctl_cb *kcb = (struct ctl_cb *)so->so_pcb; in ctl_sofreelastref() 313 so->so_pcb = 0; in ctl_sofreelastref() 375 struct ctl_cb *kcb = (struct ctl_cb *)so->so_pcb; in ctl_detach() 413 struct ctl_cb *kcb = (struct ctl_cb *)so->so_pcb; in ctl_setup_kctl() 555 struct ctl_cb *kcb = (struct ctl_cb *)so->so_pcb; in ctl_bind() 593 struct ctl_cb *kcb = (struct ctl_cb *)so->so_pcb; in ctl_connect() 669 struct ctl_cb *kcb = (struct ctl_cb *)so->so_pcb; in ctl_disconnect() 671 if ((kcb = (struct ctl_cb *)so->so_pcb)) { in ctl_disconnect() 710 struct ctl_cb *kcb = (struct ctl_cb *)so->so_pcb; in ctl_peeraddr() [all …]
|
| H A D | uipc_usrreq.c | 950 so->so_pcb = (caddr_t)unp; in unp_attach() 1288 if (so2->so_pcb == NULL) { in unp_connect() 1592 if ((((struct unpcb *)waitso->so_pcb)->unp_flags & UNP_DONTDISCONNECT) != 0) { in unp_disconnect() 1598 (void)msleep(waitso->so_pcb, &unp->unp_mtx, in unp_disconnect() 2612 if (so->so_pcb) { in unp_lock() 2613 lck_mtx_lock(&((struct unpcb *)so->so_pcb)->unp_mtx); in unp_lock() 2621 so, so->so_pcb, lr_saved, so->so_usecount); in unp_lock() 2653 if (so->so_pcb == NULL) { in unp_unlock() 2656 mutex_held = &((struct unpcb *)so->so_pcb)->unp_mtx; in unp_unlock() 2684 struct unpcb *unp = (struct unpcb *)so->so_pcb; in unp_getlock() [all …]
|
| H A D | vsock_domain.c | 44 #define sotovsockpcb(so) ((struct vsockpcb *)(so)->so_pcb) 874 so->so_pcb = pcb; in vsock_attach() 880 so->so_pcb = NULL; in vsock_attach() 959 so->so_pcb = 0; in vsock_detach()
|
| H A D | uipc_socket.c | 764 if (so->so_pcb != NULL) { in socreate_internal() 1409 if (so->so_pcb == NULL) { in soclose_locked() 1457 if (so->so_pcb != NULL && !(so->so_flags & SOF_PCBCLEARING)) { in soclose_locked() 1468 if (so->so_pcb != NULL && !(so->so_flags & SOF_MP_SUBFLOW) && in soclose_locked() 3648 if ((pr->pr_flags & PR_WANTRCVD) && so->so_pcb != NULL) { in soreceive() 3957 if ((pr->pr_flags & PR_WANTRCVD) && so->so_pcb != NULL) { in soreceive() 4051 if (pr->pr_flags & PR_WANTRCVD && so->so_pcb) { in soreceive() 4593 if (pr->pr_flags & PR_WANTRCVD && so->so_pcb) { in soreceive_list() 5184 (struct unpcb *)(so->so_pcb); in sosetoptlock() 6119 (struct unpcb *)(so->so_pcb); in sogetoptlock() [all …]
|
| H A D | kern_event.c | 8012 struct kern_event_pcb *ev_pcb = (struct kern_event_pcb *)so->so_pcb; in event_getlock() 8014 if (so->so_pcb != NULL) { in event_getlock() 8039 if (so->so_pcb != NULL) { in event_lock() 8040 lck_mtx_lock(&((struct kern_event_pcb *)so->so_pcb)->evp_mtx); in event_lock() 8049 so, so->so_pcb, lr_saved, so->so_usecount, in event_lock() 8083 if (so->so_pcb == NULL) { in event_unlock() 8089 mutex_held = (&((struct kern_event_pcb *)so->so_pcb)->evp_mtx); in event_unlock() 8108 struct kern_event_pcb *ev_pcb = (struct kern_event_pcb *)so->so_pcb; in event_sofreelastref() 8112 so->so_pcb = NULL; in event_sofreelastref() 8180 so->so_pcb = (caddr_t) ev_pcb; in kev_attach() [all …]
|
| H A D | uipc_socket2.c | 2748 xso->so_pcb = (_XSOCKET_PTR(caddr_t))VM_KERNEL_ADDRPERM(so->so_pcb); in sotoxsocket() 2779 xso->so_pcb = (u_int64_t)VM_KERNEL_ADDRPERM(so->so_pcb); in sotoxsocket64()
|
| /xnu-8020.140.41/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 | 242 so->so_pcb = (caddr_t)np; in ndrv_attach() 616 so->so_pcb = 0; in ndrv_do_detach()
|
| H A D | rtsock.c | 183 VERIFY(so->so_pcb == NULL); in rts_attach() 186 so->so_pcb = (caddr_t)rp; in rts_attach() 192 so->so_pcb = NULL; in rts_attach()
|
| /xnu-8020.140.41/bsd/netinet/ |
| H A D | mp_pcb.h | 72 return (struct mppcb *)mp_so->so_pcb; in mpsotomppcb()
|
| H A D | mp_pcb.c | 212 so->so_pcb = mpp; in mp_pcballoc() 290 mpp->mpp_socket->so_pcb = NULL; in mptcp_pcbdispose()
|
| H A D | in_pcblist.c | 124 xso->so_pcb = (uint64_t)VM_KERNEL_ADDRPERM(so->so_pcb); in sotoxsocket_n() 808 inp = (struct inpcb *)so->so_pcb; in shutdown_sockets_on_interface_proc_callout()
|
| H A D | in_pcb.c | 640 so->so_pcb = (caddr_t)inp; in in_pcballoc() 1855 if (so->so_pcb == NULL) { in in_pcbdetach() 2009 so->so_pcb = NULL; in in_pcbdispose() 3874 struct inpcb *inp = (struct inpcb *)so->so_pcb; in inp_incr_sndbytes_total() 3886 struct inpcb *inp = (struct inpcb *)so->so_pcb; in inp_decr_sndbytes_total() 3901 struct inpcb *inp = (struct inpcb *)so->so_pcb; in inp_incr_sndbytes_unsent() 3917 struct inpcb *inp = (struct inpcb *)so->so_pcb; in inp_decr_sndbytes_unsent() 4001 struct inpcb *inp = (struct inpcb *)so->so_pcb; in inp_update_last_owner() 4024 struct inpcb *inp = (struct inpcb *)so->so_pcb; in inp_copy_last_owner() 4025 struct inpcb *head_inp = (struct inpcb *)head->so_pcb; in inp_copy_last_owner()
|
| H A D | udp_usrreq.c | 2211 inp = (struct inpcb *)so->so_pcb; in udp_attach() 2536 if (so->so_pcb != NULL) { in udp_lock() 2537 LCK_MTX_ASSERT(&((struct inpcb *)so->so_pcb)->inpcb_mtx, in udp_lock() 2539 lck_mtx_lock(&((struct inpcb *)so->so_pcb)->inpcb_mtx); in udp_lock() 2569 if (so->so_pcb == NULL) { in udp_unlock() 2574 LCK_MTX_ASSERT(&((struct inpcb *)so->so_pcb)->inpcb_mtx, in udp_unlock() 2578 lck_mtx_unlock(&((struct inpcb *)so->so_pcb)->inpcb_mtx); in udp_unlock() 2589 if (so->so_pcb == NULL) { in udp_getlock()
|
| H A D | tcp_subr.c | 3203 if (so->so_pcb != NULL) { in tcp_lock() 3219 lck_mtx_lock(&((struct inpcb *)so->so_pcb)->inpcb_mtx); in tcp_lock() 3226 lck_mtx_unlock(&((struct inpcb *)so->so_pcb)->inpcb_mtx); in tcp_lock() 3238 so, so->so_pcb, lr_saved, so->so_usecount, in tcp_lock() 3264 (uint64_t)VM_KERNEL_ADDRPERM(so->so_pcb), in tcp_unlock() 3277 if (so->so_pcb == NULL) { in tcp_unlock() 3293 LCK_MTX_ASSERT(&((struct inpcb *)so->so_pcb)->inpcb_mtx, in tcp_unlock() 3295 lck_mtx_unlock(&((struct inpcb *)so->so_pcb)->inpcb_mtx); in tcp_unlock() 3306 if (so->so_pcb) { in tcp_getlock()
|
| H A D | in_pcb.h | 742 #define sotoinpcb(so) ((struct inpcb *)(so)->so_pcb)
|
| /xnu-8020.140.41/bsd/sys/ |
| H A D | kern_event.h | 349 #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 | 137 void *so_pcb; /* protocol control block */ member 435 _XSOCKET_PTR(caddr_t) so_pcb; /* another convenient handle */ 458 u_int64_t so_pcb; /* another convenient handle */ member 493 u_int64_t so_pcb; /* another convenient handle */ member
|
| /xnu-8020.140.41/bsd/netkey/ |
| H A D | keysock.c | 394 so->so_pcb = (caddr_t)kp; in key_attach() 402 so->so_pcb = (caddr_t) 0; in key_attach()
|
| /xnu-8020.140.41/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-8020.140.41/tools/lldbmacros/ |
| H A D | net.py | 474 inpcb = Cast(sock.so_pcb, 'inpcb *') 510 pcb = Cast(sock.so_pcb, 'inpcb *') 526 pcb = Cast(sock.so_pcb, 'inpcb *') 542 pcb = Cast(sock.so_pcb, 'unpcb *') 554 pcb = Cast(sock.so_pcb, 'vsockpcb *')
|