| /xnu-11417.140.69/bsd/kern/ |
| H A D | uipc_socket2.c | 403 so->so_rcv.sb_flags |= SB_RECV; /* XXX */ in sonewconn_internal() 418 so->so_rcv.sb_flags |= (head->so_rcv.sb_flags & SB_USRSIZE); in sonewconn_internal() 419 so->so_snd.sb_flags |= (head->so_snd.sb_flags & SB_USRSIZE); in sonewconn_internal() 537 boolean_t nointr = (sb->sb_flags & SB_NOINTR); in sbwait() 546 __func__, sb, sb->sb_flags, lr_saved); in sbwait() 550 "lrh= %s\n", __func__, sb, sb->sb_flags, so, in sbwait() 590 "lrh= %s\n", __func__, sb, sb->sb_flags, so, in sbwait() 630 SOCK_TYPE(so), (uint32_t)sb->sb_sel.si_flags, sb->sb_flags, in sowakeup() 631 (sb->sb_flags & SB_RECV) ? "rcv" : "snd"); in sowakeup() 634 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() 312 so->so_rcv.sb_flags |= SB_SEL; in soo_select() 315 so->so_rcv.sb_flags &= ~SB_SEL; in soo_select() 322 so->so_snd.sb_flags |= SB_SEL; in soo_select() 325 so->so_snd.sb_flags &= ~SB_SEL; in soo_select() 332 so->so_rcv.sb_flags |= SB_SEL; in soo_select() 335 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() 1344 (so->so_rcv.sb_flags & so->so_snd.sb_flags & SB_UNIX) != SB_UNIX) { in socket_defunct() 1361 sock->so_rcv.sb_flags |= SB_UPCALL; in sock_setupcalls_locked() 1363 sock->so_rcv.sb_flags |= SB_UPCALL_LOCK; in sock_setupcalls_locked() 1368 sock->so_rcv.sb_flags &= ~(SB_UPCALL | SB_UPCALL_LOCK); in sock_setupcalls_locked() 1374 sock->so_snd.sb_flags |= SB_UPCALL; in sock_setupcalls_locked() 1376 sock->so_snd.sb_flags |= SB_UPCALL_LOCK; in sock_setupcalls_locked() [all …]
|
| H A D | uipc_socket.c | 752 so->so_rcv.sb_flags |= SB_RECV; in socreate_internal() 1176 so->so_rcv.sb_flags &= ~(SB_SEL | SB_UPCALL); in sofreelastref() 1177 so->so_snd.sb_flags &= ~(SB_SEL | SB_UPCALL); in sofreelastref() 1214 so->so_rcv.sb_flags &= ~(SB_SEL | SB_UPCALL); in sofreelastref() 1215 so->so_snd.sb_flags &= ~(SB_SEL | SB_UPCALL); in sofreelastref() 1230 so->so_rcv.sb_flags &= ~SB_UPCALL; in sofreelastref() 1231 so->so_snd.sb_flags &= ~(SB_UPCALL | SB_SNDBYTE_CNT); in sofreelastref() 1258 so->so_rcv.sb_flags &= ~SB_UPCALL; in soclose_wait_locked() 1259 so->so_snd.sb_flags &= ~SB_UPCALL; in soclose_wait_locked() 2023 if ((so->so_snd.sb_flags & SB_LOCK) != 0 && in sosendcheck() [all …]
|
| H A D | socket_info.c | 65 sbi->sbi_flags = (short)sb->sb_flags; in fill_sockbuf_info()
|
| H A D | uipc_usrreq.c | 1044 so->so_rcv.sb_flags |= SB_UNIX; in unp_attach() 1045 so->so_snd.sb_flags |= SB_UNIX; in unp_attach() 2666 VERIFY(so->so_rcv.sb_flags & SB_LOCK); in unp_gc()
|
| H A D | uipc_syscalls.c | 655 so->so_rcv.sb_flags |= SB_ASYNC; in accept_nocancel() 656 so->so_snd.sb_flags |= SB_ASYNC; in accept_nocancel() 659 so->so_rcv.sb_flags &= ~SB_ASYNC; in accept_nocancel() 660 so->so_snd.sb_flags &= ~SB_ASYNC; in accept_nocancel()
|
| H A D | kern_control.c | 317 so->so_rcv.sb_flags |= SB_KCTL; in ctl_attach() 318 so->so_snd.sb_flags |= SB_KCTL; in ctl_attach()
|
| H A D | kern_event.c | 8759 so->so_rcv.sb_flags &= ~SB_UPCALL; 8760 so->so_snd.sb_flags &= ~SB_UPCALL;
|
| /xnu-11417.140.69/bsd/netinet/ |
| H A D | tcp_cc.c | 86 (sb->sb_flags & SB_AUTOSIZE)) { in tcp_cc_resize_sndbuf() 90 sb->sb_flags |= SB_TRIM; in tcp_cc_resize_sndbuf() 99 if ((sb->sb_flags & (SB_TRIM | SB_AUTOSIZE)) == (SB_TRIM | SB_AUTOSIZE)) { in tcp_bad_rexmt_fix_sndbuf() 108 sb->sb_flags &= ~SB_TRIM; in tcp_bad_rexmt_fix_sndbuf()
|
| H A D | in_pcblist.c | 171 xsb->xsb_kind = (sb->sb_flags & SB_RECV) ? XSO_RCVBUF : XSO_SNDBUF; in sbtoxsockbuf_n() 177 xsb->sb_flags = (short)sb->sb_flags; in sbtoxsockbuf_n() 967 so->so_snd.sb_flags &= ~SB_LIMITED; in inp_limit_companion_link() 970 so->so_snd.sb_flags |= SB_LIMITED; in inp_limit_companion_link() 993 !(so->so_snd.sb_flags & SB_LIMITED)) { in inp_recover_companion_link() 997 so->so_snd.sb_flags &= ~SB_LIMITED; in inp_recover_companion_link()
|
| H A D | mptcp_usrreq.c | 194 if ((mp_so->so_rcv.sb_flags & SB_USRSIZE) == 0) { in mptcp_attach() 195 mp_so->so_rcv.sb_flags |= SB_AUTOSIZE; in mptcp_attach() 197 if ((mp_so->so_snd.sb_flags & SB_USRSIZE) == 0) { in mptcp_attach() 198 mp_so->so_snd.sb_flags |= SB_AUTOSIZE; in mptcp_attach() 206 mp_so->so_snd.sb_flags |= SB_NOCOMPRESS; in mptcp_attach() 1087 VERIFY(mp_so->so_snd.sb_flags & SB_NOCOMPRESS); in mptcp_usr_send()
|
| H A D | tcp_output.c | 1339 (so->so_snd.sb_flags & (SB_AUTOSIZE | SB_TRIM)) == SB_AUTOSIZE) { in tcp_output() 2541 if (so->so_snd.sb_flags & SB_SENDHEAD) { in tcp_output() 2542 VERIFY(so->so_snd.sb_flags & SB_SENDHEAD); in tcp_output() 2578 if (so->so_snd.sb_flags & SB_SENDHEAD) { in tcp_output() 2579 VERIFY(so->so_snd.sb_flags & SB_SENDHEAD); in tcp_output() 3729 if (so->so_snd.sb_cc > 0 && so->so_snd.sb_flags & SB_SNDBYTE_CNT) { in tcp_ip_output() 3732 so->so_snd.sb_flags &= ~SB_SNDBYTE_CNT; in tcp_ip_output()
|
| H A D | tcp_usrreq.c | 174 so->so_snd.sb_flags |= SB_SENDHEAD; in tcp_usr_attach() 1238 (so->so_snd.sb_flags & SB_NOCOMPRESS)); in tcp_usr_send() 3108 if ((so->so_rcv.sb_flags & SB_USRSIZE) == 0) { in tcp_attach() 3109 so->so_rcv.sb_flags |= SB_AUTOSIZE; in tcp_attach() 3111 if ((so->so_snd.sb_flags & SB_USRSIZE) == 0) { in tcp_attach() 3112 so->so_snd.sb_flags |= SB_AUTOSIZE; in tcp_attach()
|
| H A D | in_pcb.c | 4221 so->so_snd.sb_flags |= SB_SNDBYTE_CNT; in inp_count_sndbytes() 4280 if (so == NULL || !(so->so_snd.sb_flags & SB_SNDBYTE_CNT)) { in inp_decr_sndbytes_unsent() 4301 if (so == NULL || !(so->so_snd.sb_flags & SB_SNDBYTE_CNT)) { in inp_decr_sndbytes_allunsent()
|
| H A D | mptcp.c | 723 if ((mp_so->so_snd.sb_flags & (SB_AUTOSIZE | SB_TRIM)) == SB_AUTOSIZE) { in mptcp_output()
|
| H A D | tcp_input.c | 1021 (sbrcv->sb_flags & SB_AUTOSIZE) == 0 || in tcp_sbrcv_grow() 1188 if (((sbsnd->sb_flags & (SB_AUTOSIZE | SB_TRIM)) == in tcp_sbsnd_trim() 1201 sbsnd->sb_flags &= ~(SB_TRIM); in tcp_sbsnd_trim() 1221 (sbrcv->sb_flags & SB_AUTOSIZE) != 0) { in tcp_sbrcv_tstmp_check()
|
| H A D | mptcp_subr.c | 1529 (*so)->so_rcv.sb_flags |= SB_NOCOMPRESS; in mptcp_subflow_socreate() 1530 (*so)->so_snd.sb_flags |= SB_NOCOMPRESS; in mptcp_subflow_socreate() 5860 (sbrcv->sb_flags & SB_AUTOSIZE) == 0 || in mptcp_sbrcv_grow()
|
| H A D | tcp_subr.c | 3737 maxsockbufsize = ((so->so_rcv.sb_flags & SB_USRSIZE) != 0) ? in tcp_set_max_rwinscale() 5226 if ((so->so_snd.sb_flags & SB_SNDBYTE_CNT) && in inp_get_sndbytes_allunsent()
|
| /xnu-11417.140.69/bsd/dev/dtrace/scripts/ |
| H A D | socket.d | 43 flags = T->sb_flags;
|
| /xnu-11417.140.69/bsd/sys/ |
| H A D | socketvar.h | 186 uint32_t sb_flags; /* flags, see below */ member 442 short sb_flags; member 552 short sb_flags; member
|
| /xnu-11417.140.69/bsd/net/ |
| H A D | content_filter.c | 1557 while ((sb->sb_flags & SB_LOCK) || in cfil_acquire_sockbuf() 1570 msleep(&sb->sb_flags, mutex_held, PSOCK, "cfil_acquire_sockbuf", in cfil_acquire_sockbuf() 1581 VERIFY((sb->sb_flags & SB_LOCK) == 0); in cfil_acquire_sockbuf() 1584 sb->sb_flags |= SB_LOCK; in cfil_acquire_sockbuf() 1618 if (!(so->so_flags & SOF_DEFUNCT) && !(sb->sb_flags & SB_LOCK)) { in cfil_release_sockbuf() 1628 sb->sb_flags &= ~SB_LOCK; in cfil_release_sockbuf() 1631 wakeup(&sb->sb_flags); in cfil_release_sockbuf() 5322 if ((so->so_snd.sb_flags & SB_LOCK) == 0) { in cfil_sock_data_out() 5715 if ((sb->sb_flags & SB_RECV) == 0) { in cfil_sock_data_pending() 5758 if ((sb->sb_flags & SB_RECV) == 0) { in cfil_sock_data_space() [all …]
|