/darwin-on-arm/xnu/bsd/net/ |
H A D | ndrv_var.h | 51 * The cb is plugged into the socket (so_pcb), and the ifnet structure 73 #define sotondrvcb(so) ((struct ndrv_cb *)(so)->so_pcb)
|
H A D | raw_cb.h | 83 #define sotorawcb(so) ((struct rawcb *)(so)->so_pcb)
|
H A D | raw_cb.c | 126 so->so_pcb = 0;
|
H A D | ndrv.c | 229 so->so_pcb = (caddr_t)np; 576 so->so_pcb = 0;
|
/darwin-on-arm/xnu/bsd/netinet/ |
H A D | ip_divert.c | 458 inp = (struct inpcb *)so->so_pcb; 468 so, so->so_pcb, &(((struct inpcb *)so->so_pcb)->inpcb_mtx), so->so_usecount); 480 so, so->so_pcb, &(((struct inpcb *)so->so_pcb)->inpcb_mtx), so->so_usecount); 661 so, so->so_pcb, so->so_pcb ? 662 &(((struct inpcb *)so->so_pcb)->inpcb_mtx) : NULL, 665 if (so->so_pcb) { 666 lck_mtx_lock(&((struct inpcb *)so->so_pcb) [all...] |
H A D | udp_usrreq.c | 1711 inp = (struct inpcb *)so->so_pcb; 1837 if (so->so_pcb) { 1838 lck_mtx_assert(&((struct inpcb *)so->so_pcb)->inpcb_mtx, 1840 lck_mtx_lock(&((struct inpcb *)so->so_pcb)->inpcb_mtx); 1867 if (so->so_pcb == NULL) { 1872 lck_mtx_assert(&((struct inpcb *)so->so_pcb)->inpcb_mtx, 1876 lck_mtx_unlock(&((struct inpcb *)so->so_pcb)->inpcb_mtx); 1889 if (so->so_pcb) 1892 panic("udp_getlock: so=%p NULL so_pcb lrh= %s\n",
|
H A D | tcp_subr.c | 2390 if (so->so_pcb != NULL) { 2391 lck_mtx_lock(&((struct inpcb *)so->so_pcb)->inpcb_mtx); 2399 panic("tcp_lock: so=%p so_pcb=%p lr=%p ref=%x lrh= %s\n", 2400 so, so->so_pcb, lr_saved, so->so_usecount, solockhistory_nr(so)); 2422 so, so->so_pcb, &((struct inpcb *)so->so_pcb)->inpcb_mtx, 2433 if (so->so_pcb == NULL) { 2438 lck_mtx_assert(&((struct inpcb *)so->so_pcb)->inpcb_mtx, 2442 lck_mtx_unlock(&((struct inpcb *)so->so_pcb)->inpcb_mtx); 2454 if (so->so_pcb) { [all...] |
H A D | in_pcblist.c | 115 xso->so_pcb = (u_int64_t)(uintptr_t)so->so_pcb;
|
H A D | tcp_usrreq.c | 221 lck_mtx_assert(&((struct inpcb *)so->so_pcb)->inpcb_mtx, LCK_MTX_ASSERT_OWNED); 513 lck_mtx_assert(&((struct inpcb *)so->so_pcb)->inpcb_mtx, LCK_MTX_ASSERT_OWNED); 1278 struct inpcb *inp = (struct inpcb*)so->so_pcb;
|
H A D | in_pcb.h | 628 #define sotoinpcb(so) ((struct inpcb *)(so)->so_pcb)
|
/darwin-on-arm/xnu/bsd/netat/ |
H A D | ddp_usrreq.c | 83 struct atpcb *pcb = (struct atpcb *)((so)->so_pcb); 92 pcb = (struct atpcb *)((so)->so_pcb); 105 struct atpcb *pcb = (struct atpcb *)((so)->so_pcb); 122 struct atpcb *pcb = (struct atpcb *)((so)->so_pcb); 135 struct atpcb *pcb = (struct atpcb *)((so)->so_pcb); 146 struct atpcb *pcb = (struct atpcb *)((so)->so_pcb); 159 struct atpcb *pcb = (struct atpcb *)((so)->so_pcb); 173 struct atpcb *pcb = (struct atpcb *)((so)->so_pcb); 308 struct atpcb *pcb = (struct atpcb *)((so)->so_pcb);
|
H A D | at_pcb.h | 114 #define sotoatpcb(so)((struct atpcb *)(so)->so_pcb)
|
H A D | at_pcb.c | 142 so->so_pcb = (caddr_t)pcb; 159 so->so_pcb = 0;
|
H A D | at.c | 171 if ((error = at_ioctl((struct atpcb *)so->so_pcb, fixed_command, data, 0))) { 172 if (((struct atpcb *)so->so_pcb)->proto != ATPROTO_LAP) { 173 ((struct atpcb *)so->so_pcb)->proto = ATPROTO_LAP; 174 error = at_ioctl((struct atpcb *)so->so_pcb, fixed_command, data , 0);
|
/darwin-on-arm/xnu/bsd/kern/ |
H A D | socket_info.c | 76 si->soi_pcb = (u_int64_t)VM_KERNEL_ADDRPERM(so->so_pcb); 110 if (so->so_pcb == 0 || so->so_proto == 0 || so->so_proto->pr_domain == 0) 121 struct inpcb *inp = (struct inpcb *)so->so_pcb; 158 struct unpcb *unp = (struct unpcb *)so->so_pcb; 186 struct ndrv_cb *ndrv_cb = (struct ndrv_cb *)so->so_pcb; 204 struct kern_event_pcb *ev_pcb = (struct kern_event_pcb *)so->so_pcb; 214 struct ctl_cb *kcb = (struct ctl_cb *)so->so_pcb;
|
H A D | kern_control.c | 237 so->so_pcb = (caddr_t)kcb; 250 struct ctl_cb *kcb = (struct ctl_cb *)so->so_pcb; 252 so->so_pcb = 0; 270 struct ctl_cb *kcb = (struct ctl_cb *)so->so_pcb; 287 struct ctl_cb *kcb = (struct ctl_cb *)so->so_pcb; 291 panic("ctl_connect so_pcb null\n"); 393 struct ctl_cb *kcb = (struct ctl_cb *)so->so_pcb; 395 if ((kcb = (struct ctl_cb *)so->so_pcb)) { 423 struct ctl_cb *kcb = (struct ctl_cb *)so->so_pcb; 451 struct ctl_cb *kcb = (struct ctl_cb *)so->so_pcb; [all...] |
H A D | uipc_usrreq.c | 807 so->so_pcb = (caddr_t)unp; 1100 if (so2->so_pcb == NULL) { 1404 if ((((struct unpcb *)waitso->so_pcb)->unp_flags & UNP_DONTDISCONNECT) != 0) { 1410 (void)msleep(waitso->so_pcb, &unp->unp_mtx, 2312 if (so->so_pcb) { 2313 lck_mtx_lock(&((struct unpcb *)so->so_pcb)->unp_mtx); 2320 panic("unp_lock: so=%p so_pcb=%p lr=%p ref=0x%x\n", 2321 so, so->so_pcb, lr_saved, so->so_usecount); 2347 if (so->so_pcb == NULL) { 2350 mutex_held = &((struct unpcb *)so->so_pcb) [all...] |
H A D | uipc_socket2.c | 1894 xso->so_pcb = (_XSOCKET_PTR(caddr_t))VM_KERNEL_ADDRPERM(so->so_pcb); 1925 xso->so_pcb = (u_int64_t)VM_KERNEL_ADDRPERM(so->so_pcb);
|
H A D | uipc_socket.c | 605 * If so_pcb is not zero, the socket will be leaked, 997 if (so->so_pcb == 0) { 1037 if (so->so_pcb && !(so->so_flags & SOF_PCBCLEARING)) { 1045 nstat_pcb_detach(so->so_pcb); 1054 if (so->so_pcb && so->so_state & SS_NOFDREF) 2575 if (pr->pr_flags & PR_WANTRCVD && so->so_pcb && 2576 (((struct inpcb *)so->so_pcb)->inp_state != 2669 if (pr->pr_flags & PR_WANTRCVD && so->so_pcb) 4319 struct inpcb *inp = (struct inpcb *)so->so_pcb;
|
H A D | kern_event.c | 2791 so->so_pcb = (caddr_t) ev_pcb; 2803 struct kern_event_pcb *ev_pcb = (struct kern_event_pcb *) so->so_pcb; 2808 so->so_pcb = 0; 2953 ev_pcb = (struct kern_event_pcb *) so->so_pcb; 2960 ev_pcb = (struct kern_event_pcb *) so->so_pcb;
|
/darwin-on-arm/xnu/bsd/sys/ |
H A D | kern_event.h | 297 #define sotoevpcb(so) ((struct kern_event_pcb *)((so)->so_pcb))
|
H A D | unpcb.h | 121 #define sotounpcb(so) ((struct unpcb *)((so)->so_pcb))
|
H A D | socketvar.h | 134 void *so_pcb; /* protocol control block */ member in struct:socket 364 _XSOCKET_PTR(caddr_t) so_pcb; /* another convenient handle */ member in struct:xsocket 388 u_int64_t so_pcb; /* another convenient handle */ member in struct:xsocket64 422 u_int64_t so_pcb; /* another convenient handle */ member in struct:xsocket_n
|
/darwin-on-arm/xnu/bsd/netkey/ |
H A D | keysock.c | 363 so->so_pcb = (caddr_t)kp; 372 so->so_pcb = (caddr_t) 0;
|
/darwin-on-arm/xnu/bsd/security/audit/ |
H A D | audit_arg.c | 607 if (so->so_pcb == NULL) 615 pcb = (struct inpcb *)so->so_pcb; 627 if (so->so_pcb == NULL) 635 pcb = (struct inpcb *)so->so_pcb;
|