Home
last modified time | relevance | path

Searched refs:so_pcb (Results 1 – 25 of 40) sorted by relevance

12

/xnu-10063.141.1/bsd/kern/
H A Dsocket_info.c79 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 Dkern_control.c301 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 Duipc_usrreq.c995 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 Dvsock_domain.c44 #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 Duipc_socket.c772 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 Dkern_event.c8262 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 Duipc_socket2.c2794 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 Draw_cb.h81 #define sotorawcb(so) ((struct rawcb *)(so)->so_pcb)
H A Dndrv_var.h72 #define sotondrvcb(so) ((struct ndrv_cb *)(so)->so_pcb)
H A Draw_cb.c128 so->so_pcb = 0; in raw_detach_nofree()
H A Dndrv.c243 so->so_pcb = (caddr_t)np; in ndrv_attach()
614 so->so_pcb = 0; in ndrv_do_detach()
H A Drtsock.c193 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 Dmp_pcb.h72 return (struct mppcb *)mp_so->so_pcb; in mpsotomppcb()
H A Dmp_pcb.c211 so->so_pcb = mpp; in mp_pcballoc()
289 mpp->mpp_socket->so_pcb = NULL; in mptcp_pcbdispose()
H A Din_pcb.c728 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 Dudp_usrreq.c2266 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 Din_pcblist.c126 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 Dtcp_subr.c3216 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 Din_pcb.h766 #define sotoinpcb(so) ((struct inpcb *)(so)->so_pcb)
/xnu-10063.141.1/bsd/sys/
H A Dkern_event.h349 #define sotoevpcb(so) ((struct kern_event_pcb *)((so)->so_pcb))
H A Dunpcb.h125 #define sotounpcb(so) ((struct unpcb *)((so)->so_pcb))
H A Dsocketvar.h140 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 Dkeysock.c394 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 Daudit_arg.c594 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 Dnet.py471 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 *')

12