| /xnu-10063.141.1/bsd/kern/ |
| H A D | socket_info.c | 79 si->soi_pcb = (u_int64_t)VM_KERNEL_ADDRHASH(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 | 301 so->so_pcb = (caddr_t)kcb; in ctl_attach() 318 struct ctl_cb *kcb = (struct ctl_cb *)so->so_pcb; in ctl_sofreelastref() 320 so->so_pcb = 0; in ctl_sofreelastref() 384 struct ctl_cb *kcb = (struct ctl_cb *)so->so_pcb; in ctl_detach() 422 struct ctl_cb *kcb = (struct ctl_cb *)so->so_pcb; in ctl_setup_kctl() 546 struct ctl_cb *kcb = (struct ctl_cb *)so->so_pcb; in ctl_bind() 584 struct ctl_cb *kcb = (struct ctl_cb *)so->so_pcb; in ctl_connect() 660 struct ctl_cb *kcb = (struct ctl_cb *)so->so_pcb; in ctl_disconnect() 662 if ((kcb = (struct ctl_cb *)so->so_pcb)) { in ctl_disconnect() 701 struct ctl_cb *kcb = (struct ctl_cb *)so->so_pcb; in ctl_peeraddr() [all …]
|
| H A D | uipc_usrreq.c | 995 so->so_pcb = (caddr_t)unp; in unp_attach() 1333 if (so2->so_pcb == NULL) { in unp_connect() 1636 if ((((struct unpcb *)waitso->so_pcb)->unp_flags & UNP_DONTDISCONNECT) != 0) { in unp_disconnect() 1642 (void)msleep(waitso->so_pcb, &unp->unp_mtx, in unp_disconnect() 2801 if (so->so_pcb) { in unp_lock() 2802 lck_mtx_lock(&((struct unpcb *)so->so_pcb)->unp_mtx); in unp_lock() 2810 so, so->so_pcb, lr_saved, so->so_usecount); in unp_lock() 2842 if (so->so_pcb == NULL) { in unp_unlock() 2845 mutex_held = &((struct unpcb *)so->so_pcb)->unp_mtx; in unp_unlock() 2873 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) 897 so->so_pcb = pcb; in vsock_attach() 903 so->so_pcb = NULL; in vsock_attach() 1446 so->so_pcb = NULL; in vsock_sofreelastref()
|
| H A D | uipc_socket.c | 772 if (so->so_pcb != NULL) { in socreate_internal() 1423 if (so->so_pcb == NULL) { in soclose_locked() 1472 if (so->so_pcb != NULL && !(so->so_flags & SOF_PCBCLEARING)) { in soclose_locked() 1483 if (so->so_pcb != NULL && !(so->so_flags & SOF_MP_SUBFLOW) && in soclose_locked() 3594 if ((pr->pr_flags & PR_WANTRCVD) && so->so_pcb != NULL) { in soreceive() 3902 if ((pr->pr_flags & PR_WANTRCVD) && so->so_pcb != NULL) { in soreceive() 3996 if (pr->pr_flags & PR_WANTRCVD && so->so_pcb) { in soreceive() 4364 if (pr->pr_flags & PR_WANTRCVD && so->so_pcb != NULL) { in soreceive_m_list() 4952 (struct unpcb *)(so->so_pcb); in sosetoptlock() 4977 (struct unpcb *)(so->so_pcb); in sosetoptlock() [all …]
|
| H A D | kern_event.c | 8262 struct kern_event_pcb *ev_pcb = (struct kern_event_pcb *)so->so_pcb; in event_getlock() 8264 if (so->so_pcb != NULL) { in event_getlock() 8289 if (so->so_pcb != NULL) { in event_lock() 8290 lck_mtx_lock(&((struct kern_event_pcb *)so->so_pcb)->evp_mtx); in event_lock() 8299 so, so->so_pcb, lr_saved, so->so_usecount, in event_lock() 8333 if (so->so_pcb == NULL) { in event_unlock() 8339 mutex_held = (&((struct kern_event_pcb *)so->so_pcb)->evp_mtx); in event_unlock() 8358 struct kern_event_pcb *ev_pcb = (struct kern_event_pcb *)so->so_pcb; in event_sofreelastref() 8362 so->so_pcb = NULL; in event_sofreelastref() 8429 so->so_pcb = (caddr_t) ev_pcb; in kev_attach() [all …]
|
| H A D | uipc_socket2.c | 2794 xso->so_pcb = (_XSOCKET_PTR(caddr_t))VM_KERNEL_ADDRHASH(so->so_pcb); in sotoxsocket() 2825 xso->so_pcb = (u_int64_t)VM_KERNEL_ADDRHASH(so->so_pcb); in sotoxsocket64()
|
| /xnu-10063.141.1/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 | 243 so->so_pcb = (caddr_t)np; in ndrv_attach() 614 so->so_pcb = 0; in ndrv_do_detach()
|
| H A D | rtsock.c | 193 VERIFY(so->so_pcb == NULL); in rts_attach() 196 so->so_pcb = (caddr_t)rp; in rts_attach() 202 so->so_pcb = NULL; in rts_attach()
|
| /xnu-10063.141.1/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 | 728 so->so_pcb = (caddr_t)inp; in in_pcballoc() 1975 if (so->so_pcb == NULL) { in in_pcbdetach() 2137 so->so_pcb = NULL; in in_pcbdispose() 4144 struct inpcb *inp = (struct inpcb *)so->so_pcb; in inp_incr_sndbytes_total() 4156 struct inpcb *inp = (struct inpcb *)so->so_pcb; in inp_decr_sndbytes_total() 4171 struct inpcb *inp = (struct inpcb *)so->so_pcb; in inp_incr_sndbytes_unsent() 4187 struct inpcb *inp = (struct inpcb *)so->so_pcb; in inp_decr_sndbytes_unsent() 4277 struct inpcb *inp = (struct inpcb *)so->so_pcb; in inp_update_last_owner() 4300 struct inpcb *inp = (struct inpcb *)so->so_pcb; in inp_copy_last_owner() 4301 struct inpcb *head_inp = (struct inpcb *)head->so_pcb; in inp_copy_last_owner() [all …]
|
| H A D | udp_usrreq.c | 2266 inp = (struct inpcb *)so->so_pcb; in udp_attach() 2605 if (so->so_pcb != NULL) { in udp_lock() 2606 LCK_MTX_ASSERT(&((struct inpcb *)so->so_pcb)->inpcb_mtx, in udp_lock() 2608 lck_mtx_lock(&((struct inpcb *)so->so_pcb)->inpcb_mtx); in udp_lock() 2638 if (so->so_pcb == NULL) { in udp_unlock() 2643 LCK_MTX_ASSERT(&((struct inpcb *)so->so_pcb)->inpcb_mtx, in udp_unlock() 2647 lck_mtx_unlock(&((struct inpcb *)so->so_pcb)->inpcb_mtx); in udp_unlock() 2658 if (so->so_pcb == NULL) { in udp_getlock()
|
| H A D | in_pcblist.c | 126 xso->so_pcb = (uint64_t)VM_KERNEL_ADDRHASH(so->so_pcb); in sotoxsocket_n() 890 inp = (struct inpcb *)so->so_pcb; in shutdown_sockets_on_interface_proc_callout()
|
| H A D | tcp_subr.c | 3216 if (so->so_pcb != NULL) { in tcp_lock() 3232 lck_mtx_lock(&((struct inpcb *)so->so_pcb)->inpcb_mtx); in tcp_lock() 3239 lck_mtx_unlock(&((struct inpcb *)so->so_pcb)->inpcb_mtx); in tcp_lock() 3251 so, so->so_pcb, lr_saved, so->so_usecount, in tcp_lock() 3277 (uint64_t)VM_KERNEL_ADDRPERM(so->so_pcb), in tcp_unlock() 3290 if (so->so_pcb == NULL) { in tcp_unlock() 3306 LCK_MTX_ASSERT(&((struct inpcb *)so->so_pcb)->inpcb_mtx, in tcp_unlock() 3308 lck_mtx_unlock(&((struct inpcb *)so->so_pcb)->inpcb_mtx); in tcp_unlock() 3319 if (so->so_pcb) { in tcp_getlock()
|
| H A D | in_pcb.h | 766 #define sotoinpcb(so) ((struct inpcb *)(so)->so_pcb)
|
| /xnu-10063.141.1/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 | 140 void *so_pcb; /* protocol control block */ member 449 _XSOCKET_PTR(caddr_t) so_pcb; /* another convenient handle */ 472 u_int64_t so_pcb; /* another convenient handle */ member 508 u_int64_t so_pcb; /* another convenient handle */ member
|
| /xnu-10063.141.1/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-10063.141.1/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-10063.141.1/tools/lldbmacros/ |
| H A D | net.py | 471 inpcb = Cast(sock.so_pcb, 'inpcb *') 507 pcb = Cast(sock.so_pcb, 'inpcb *') 523 pcb = Cast(sock.so_pcb, 'inpcb *') 539 pcb = Cast(sock.so_pcb, 'unpcb *') 551 pcb = Cast(sock.so_pcb, 'vsockpcb *')
|