Searched refs:so_pcb (Results 1 - 25 of 37) sorted by relevance

12

/darwin-on-arm/xnu/bsd/net/
H A Dndrv_var.h51 * 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 Draw_cb.h83 #define sotorawcb(so) ((struct rawcb *)(so)->so_pcb)
H A Draw_cb.c126 so->so_pcb = 0;
H A Dndrv.c229 so->so_pcb = (caddr_t)np;
576 so->so_pcb = 0;
/darwin-on-arm/xnu/bsd/netinet/
H A Dip_divert.c458 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 Dudp_usrreq.c1711 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 Dtcp_subr.c2390 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 Din_pcblist.c115 xso->so_pcb = (u_int64_t)(uintptr_t)so->so_pcb;
H A Dtcp_usrreq.c221 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 Din_pcb.h628 #define sotoinpcb(so) ((struct inpcb *)(so)->so_pcb)
/darwin-on-arm/xnu/bsd/netat/
H A Dddp_usrreq.c83 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 Dat_pcb.h114 #define sotoatpcb(so)((struct atpcb *)(so)->so_pcb)
H A Dat_pcb.c142 so->so_pcb = (caddr_t)pcb;
159 so->so_pcb = 0;
H A Dat.c171 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 Dsocket_info.c76 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 Dkern_control.c237 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 Duipc_usrreq.c807 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 Duipc_socket2.c1894 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 Duipc_socket.c605 * 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 Dkern_event.c2791 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 Dkern_event.h297 #define sotoevpcb(so) ((struct kern_event_pcb *)((so)->so_pcb))
H A Dunpcb.h121 #define sotounpcb(so) ((struct unpcb *)((so)->so_pcb))
H A Dsocketvar.h134 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 Dkeysock.c363 so->so_pcb = (caddr_t)kp;
372 so->so_pcb = (caddr_t) 0;
/darwin-on-arm/xnu/bsd/security/audit/
H A Daudit_arg.c607 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;

Completed in 196 milliseconds

12