| /xnu-8020.140.41/bsd/kern/ |
| H A D | uipc_socket2.c | 400 so->so_rcv.sb_flags |= SB_RECV; /* XXX */ in sonewconn_internal() 415 so->so_rcv.sb_flags |= (head->so_rcv.sb_flags & SB_USRSIZE); in sonewconn_internal() 416 so->so_snd.sb_flags |= (head->so_snd.sb_flags & SB_USRSIZE); in sonewconn_internal() 534 boolean_t nointr = (sb->sb_flags & SB_NOINTR); in sbwait() 543 __func__, sb, sb->sb_flags, lr_saved); in sbwait() 547 "lrh= %s\n", __func__, sb, sb->sb_flags, so, in sbwait() 587 "lrh= %s\n", __func__, sb, sb->sb_flags, so, in sbwait() 627 SOCK_TYPE(so), (uint32_t)sb->sb_sel.si_flags, sb->sb_flags, in sowakeup() 628 (sb->sb_flags & SB_RECV) ? "rcv" : "snd"); in sowakeup() 631 sb->sb_flags &= ~SB_SEL; in sowakeup() [all …]
|
| H A D | sys_socket.c | 217 so->so_rcv.sb_flags |= SB_ASYNC; in soioctl() 218 so->so_snd.sb_flags |= SB_ASYNC; in soioctl() 221 so->so_rcv.sb_flags &= ~SB_ASYNC; in soioctl() 222 so->so_snd.sb_flags &= ~SB_ASYNC; in soioctl() 316 so->so_rcv.sb_flags |= SB_SEL; in soo_select() 319 so->so_rcv.sb_flags &= ~SB_SEL; in soo_select() 326 so->so_snd.sb_flags |= SB_SEL; in soo_select() 329 so->so_snd.sb_flags &= ~SB_SEL; in soo_select() 336 so->so_rcv.sb_flags |= SB_SEL; in soo_select() 339 so->so_rcv.sb_flags &= ~SB_SEL; in soo_select()
|
| H A D | kpi_socket.c | 406 sock->so_rcv.sb_flags |= SB_NOINTR; /* This isn't safe */ in sock_nointerrupt() 407 sock->so_snd.sb_flags |= SB_NOINTR; /* This isn't safe */ in sock_nointerrupt() 409 sock->so_rcv.sb_flags &= ~SB_NOINTR; /* This isn't safe */ in sock_nointerrupt() 410 sock->so_snd.sb_flags &= ~SB_NOINTR; /* This isn't safe */ in sock_nointerrupt() 1285 (so->so_rcv.sb_flags & so->so_snd.sb_flags & SB_UNIX) != SB_UNIX) { in socket_defunct() 1302 sock->so_rcv.sb_flags |= SB_UPCALL; in sock_setupcalls_locked() 1304 sock->so_rcv.sb_flags |= SB_UPCALL_LOCK; in sock_setupcalls_locked() 1309 sock->so_rcv.sb_flags &= ~(SB_UPCALL | SB_UPCALL_LOCK); in sock_setupcalls_locked() 1315 sock->so_snd.sb_flags |= SB_UPCALL; in sock_setupcalls_locked() 1317 sock->so_snd.sb_flags |= SB_UPCALL_LOCK; in sock_setupcalls_locked() [all …]
|
| H A D | uipc_socket.c | 745 so->so_rcv.sb_flags |= SB_RECV; in socreate_internal() 1168 so->so_rcv.sb_flags &= ~(SB_SEL | SB_UPCALL); in sofreelastref() 1169 so->so_snd.sb_flags &= ~(SB_SEL | SB_UPCALL); in sofreelastref() 1206 so->so_rcv.sb_flags &= ~(SB_SEL | SB_UPCALL); in sofreelastref() 1207 so->so_snd.sb_flags &= ~(SB_SEL | SB_UPCALL); in sofreelastref() 1222 so->so_rcv.sb_flags &= ~SB_UPCALL; in sofreelastref() 1223 so->so_snd.sb_flags &= ~(SB_UPCALL | SB_SNDBYTE_CNT); in sofreelastref() 1250 so->so_rcv.sb_flags &= ~SB_UPCALL; in soclose_wait_locked() 1251 so->so_snd.sb_flags &= ~SB_UPCALL; in soclose_wait_locked() 1987 if ((so->so_snd.sb_flags & SB_LOCK) != 0 && in sosendcheck() [all …]
|
| H A D | socket_info.c | 63 sbi->sbi_flags = (short)sb->sb_flags; in fill_sockbuf_info()
|
| H A D | uipc_usrreq.c | 969 so->so_rcv.sb_flags |= SB_UNIX; in unp_attach() 970 so->so_snd.sb_flags |= SB_UNIX; in unp_attach() 2433 VERIFY(so->so_rcv.sb_flags & SB_LOCK); in unp_gc()
|
| H A D | uipc_syscalls.c | 594 so->so_rcv.sb_flags |= SB_ASYNC; in accept_nocancel() 595 so->so_snd.sb_flags |= SB_ASYNC; in accept_nocancel() 598 so->so_rcv.sb_flags &= ~SB_ASYNC; in accept_nocancel() 599 so->so_snd.sb_flags &= ~SB_ASYNC; in accept_nocancel()
|
| H A D | kern_event.c | 8119 so->so_rcv.sb_flags &= ~SB_UPCALL; in event_sofreelastref() 8120 so->so_snd.sb_flags &= ~SB_UPCALL; in event_sofreelastref()
|
| /xnu-8020.140.41/bsd/netinet/ |
| H A D | tcp_cc.c | 265 (sb->sb_flags & SB_AUTOSIZE)) { in tcp_cc_resize_sndbuf() 269 sb->sb_flags |= SB_TRIM; in tcp_cc_resize_sndbuf() 278 if ((sb->sb_flags & (SB_TRIM | SB_AUTOSIZE)) == (SB_TRIM | SB_AUTOSIZE)) { in tcp_bad_rexmt_fix_sndbuf() 287 sb->sb_flags &= ~SB_TRIM; in tcp_bad_rexmt_fix_sndbuf()
|
| H A D | in_pcblist.c | 152 xsb->xsb_kind = (sb->sb_flags & SB_RECV) ? XSO_RCVBUF : XSO_SNDBUF; in sbtoxsockbuf_n() 158 xsb->sb_flags = (short)sb->sb_flags; in sbtoxsockbuf_n() 881 so->so_snd.sb_flags &= ~SB_LIMITED; in inp_limit_companion_link() 884 so->so_snd.sb_flags |= SB_LIMITED; in inp_limit_companion_link() 907 !(so->so_snd.sb_flags & SB_LIMITED)) { in inp_recover_companion_link() 911 so->so_snd.sb_flags &= ~SB_LIMITED; in inp_recover_companion_link()
|
| H A D | mptcp_usrreq.c | 197 if ((mp_so->so_rcv.sb_flags & SB_USRSIZE) == 0) { in mptcp_attach() 198 mp_so->so_rcv.sb_flags |= SB_AUTOSIZE; in mptcp_attach() 200 if ((mp_so->so_snd.sb_flags & SB_USRSIZE) == 0) { in mptcp_attach() 201 mp_so->so_snd.sb_flags |= SB_AUTOSIZE; in mptcp_attach() 209 mp_so->so_snd.sb_flags |= SB_NOCOMPRESS; in mptcp_attach() 1082 VERIFY(mp_so->so_snd.sb_flags & SB_NOCOMPRESS); in mptcp_usr_send()
|
| H A D | tcp_usrreq.c | 1164 (so->so_snd.sb_flags & SB_NOCOMPRESS)); in tcp_usr_send() 2967 if ((so->so_rcv.sb_flags & SB_USRSIZE) == 0) { in tcp_attach() 2968 so->so_rcv.sb_flags |= SB_AUTOSIZE; in tcp_attach() 2970 if ((so->so_snd.sb_flags & SB_USRSIZE) == 0) { in tcp_attach() 2971 so->so_snd.sb_flags |= SB_AUTOSIZE; in tcp_attach()
|
| H A D | tcp_output.c | 1139 (so->so_snd.sb_flags & (SB_AUTOSIZE | SB_TRIM)) == SB_AUTOSIZE && in tcp_output() 3154 if (so->so_snd.sb_cc > 0 && so->so_snd.sb_flags & SB_SNDBYTE_CNT) { in tcp_ip_output() 3157 so->so_snd.sb_flags &= ~SB_SNDBYTE_CNT; in tcp_ip_output()
|
| H A D | in_pcb.c | 3854 so->so_snd.sb_flags |= SB_SNDBYTE_CNT; in inp_count_sndbytes() 3913 if (so == NULL || !(so->so_snd.sb_flags & SB_SNDBYTE_CNT)) { in inp_decr_sndbytes_unsent() 3934 if (so == NULL || !(so->so_snd.sb_flags & SB_SNDBYTE_CNT)) { in inp_decr_sndbytes_allunsent()
|
| H A D | tcp_input.c | 1048 (sbrcv->sb_flags & SB_AUTOSIZE) == 0 || in tcp_sbrcv_grow() 1245 if (((sbsnd->sb_flags & (SB_AUTOSIZE | SB_TRIM)) == in tcp_sbsnd_trim() 1258 sbsnd->sb_flags &= ~(SB_TRIM); in tcp_sbsnd_trim() 1278 (sbrcv->sb_flags & SB_AUTOSIZE) != 0) { in tcp_sbrcv_tstmp_check()
|
| H A D | mptcp.c | 720 if ((mp_so->so_snd.sb_flags & (SB_AUTOSIZE | SB_TRIM)) == SB_AUTOSIZE && in mptcp_output()
|
| H A D | mptcp_subr.c | 1712 (*so)->so_rcv.sb_flags |= SB_NOCOMPRESS; in mptcp_subflow_socreate() 1713 (*so)->so_snd.sb_flags |= SB_NOCOMPRESS; in mptcp_subflow_socreate() 6004 (sbrcv->sb_flags & SB_AUTOSIZE) == 0 || in mptcp_sbrcv_grow()
|
| H A D | tcp_subr.c | 3605 maxsockbufsize = ((so->so_rcv.sb_flags & SB_USRSIZE) != 0) ? in tcp_set_max_rwinscale() 4448 if ((so->so_snd.sb_flags & SB_SNDBYTE_CNT) && in inp_get_sndbytes_allunsent()
|
| /xnu-8020.140.41/bsd/dev/dtrace/scripts/ |
| H A D | socket.d | 43 flags = T->sb_flags;
|
| /xnu-8020.140.41/bsd/sys/ |
| H A D | socketvar.h | 177 u_int32_t sb_flags; /* flags, see below */ member 421 short sb_flags; member 516 short sb_flags; member
|
| /xnu-8020.140.41/bsd/net/ |
| H A D | content_filter.c | 1518 while ((sb->sb_flags & SB_LOCK) || in cfil_acquire_sockbuf() 1531 msleep(&sb->sb_flags, mutex_held, PSOCK, "cfil_acquire_sockbuf", in cfil_acquire_sockbuf() 1542 VERIFY((sb->sb_flags & SB_LOCK) == 0); in cfil_acquire_sockbuf() 1545 sb->sb_flags |= SB_LOCK; in cfil_acquire_sockbuf() 1579 if (!(so->so_flags & SOF_DEFUNCT) && !(sb->sb_flags & SB_LOCK)) { in cfil_release_sockbuf() 1589 sb->sb_flags &= ~SB_LOCK; in cfil_release_sockbuf() 1592 wakeup(&sb->sb_flags); in cfil_release_sockbuf() 4953 if ((so->so_snd.sb_flags & SB_LOCK) == 0) { in cfil_sock_data_out() 5346 if ((sb->sb_flags & SB_RECV) == 0) { in cfil_sock_data_pending() 5389 if ((sb->sb_flags & SB_RECV) == 0) { in cfil_sock_data_space() [all …]
|