Home
last modified time | relevance | path

Searched refs:sb_flags (Results 1 – 22 of 22) sorted by relevance

/xnu-10063.141.1/bsd/kern/
H A Duipc_socket2.c402 so->so_rcv.sb_flags |= SB_RECV; /* XXX */ in sonewconn_internal()
417 so->so_rcv.sb_flags |= (head->so_rcv.sb_flags & SB_USRSIZE); in sonewconn_internal()
418 so->so_snd.sb_flags |= (head->so_snd.sb_flags & SB_USRSIZE); in sonewconn_internal()
536 boolean_t nointr = (sb->sb_flags & SB_NOINTR); in sbwait()
545 __func__, sb, sb->sb_flags, lr_saved); in sbwait()
549 "lrh= %s\n", __func__, sb, sb->sb_flags, so, in sbwait()
589 "lrh= %s\n", __func__, sb, sb->sb_flags, so, in sbwait()
629 SOCK_TYPE(so), (uint32_t)sb->sb_sel.si_flags, sb->sb_flags, in sowakeup()
630 (sb->sb_flags & SB_RECV) ? "rcv" : "snd"); in sowakeup()
633 sb->sb_flags &= ~SB_SEL; in sowakeup()
[all …]
H A Dsys_socket.c217 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 Dkpi_socket.c408 sock->so_rcv.sb_flags |= SB_NOINTR; /* This isn't safe */ in sock_nointerrupt()
409 sock->so_snd.sb_flags |= SB_NOINTR; /* This isn't safe */ in sock_nointerrupt()
411 sock->so_rcv.sb_flags &= ~SB_NOINTR; /* This isn't safe */ in sock_nointerrupt()
412 sock->so_snd.sb_flags &= ~SB_NOINTR; /* This isn't safe */ in sock_nointerrupt()
1345 (so->so_rcv.sb_flags & so->so_snd.sb_flags & SB_UNIX) != SB_UNIX) { in socket_defunct()
1362 sock->so_rcv.sb_flags |= SB_UPCALL; in sock_setupcalls_locked()
1364 sock->so_rcv.sb_flags |= SB_UPCALL_LOCK; in sock_setupcalls_locked()
1369 sock->so_rcv.sb_flags &= ~(SB_UPCALL | SB_UPCALL_LOCK); in sock_setupcalls_locked()
1375 sock->so_snd.sb_flags |= SB_UPCALL; in sock_setupcalls_locked()
1377 sock->so_snd.sb_flags |= SB_UPCALL_LOCK; in sock_setupcalls_locked()
[all …]
H A Duipc_socket.c753 so->so_rcv.sb_flags |= SB_RECV; in socreate_internal()
1182 so->so_rcv.sb_flags &= ~(SB_SEL | SB_UPCALL); in sofreelastref()
1183 so->so_snd.sb_flags &= ~(SB_SEL | SB_UPCALL); in sofreelastref()
1220 so->so_rcv.sb_flags &= ~(SB_SEL | SB_UPCALL); in sofreelastref()
1221 so->so_snd.sb_flags &= ~(SB_SEL | SB_UPCALL); in sofreelastref()
1236 so->so_rcv.sb_flags &= ~SB_UPCALL; in sofreelastref()
1237 so->so_snd.sb_flags &= ~(SB_UPCALL | SB_SNDBYTE_CNT); in sofreelastref()
1264 so->so_rcv.sb_flags &= ~SB_UPCALL; in soclose_wait_locked()
1265 so->so_snd.sb_flags &= ~SB_UPCALL; in soclose_wait_locked()
2003 if ((so->so_snd.sb_flags & SB_LOCK) != 0 && in sosendcheck()
[all …]
H A Dsocket_info.c63 sbi->sbi_flags = (short)sb->sb_flags; in fill_sockbuf_info()
H A Duipc_usrreq.c1014 so->so_rcv.sb_flags |= SB_UNIX; in unp_attach()
1015 so->so_snd.sb_flags |= SB_UNIX; in unp_attach()
2622 VERIFY(so->so_rcv.sb_flags & SB_LOCK); in unp_gc()
H A Duipc_syscalls.c648 so->so_rcv.sb_flags |= SB_ASYNC; in accept_nocancel()
649 so->so_snd.sb_flags |= SB_ASYNC; in accept_nocancel()
652 so->so_rcv.sb_flags &= ~SB_ASYNC; in accept_nocancel()
653 so->so_snd.sb_flags &= ~SB_ASYNC; in accept_nocancel()
H A Dkern_control.c309 so->so_rcv.sb_flags |= SB_KCTL; in ctl_attach()
310 so->so_snd.sb_flags |= SB_KCTL; in ctl_attach()
H A Dkern_event.c8369 so->so_rcv.sb_flags &= ~SB_UPCALL; in event_sofreelastref()
8370 so->so_snd.sb_flags &= ~SB_UPCALL; in event_sofreelastref()
/xnu-10063.141.1/bsd/netinet/
H A Dtcp_cc.c84 (sb->sb_flags & SB_AUTOSIZE)) { in tcp_cc_resize_sndbuf()
88 sb->sb_flags |= SB_TRIM; in tcp_cc_resize_sndbuf()
97 if ((sb->sb_flags & (SB_TRIM | SB_AUTOSIZE)) == (SB_TRIM | SB_AUTOSIZE)) { in tcp_bad_rexmt_fix_sndbuf()
106 sb->sb_flags &= ~SB_TRIM; in tcp_bad_rexmt_fix_sndbuf()
H A Din_pcblist.c171 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()
963 so->so_snd.sb_flags &= ~SB_LIMITED; in inp_limit_companion_link()
966 so->so_snd.sb_flags |= SB_LIMITED; in inp_limit_companion_link()
989 !(so->so_snd.sb_flags & SB_LIMITED)) { in inp_recover_companion_link()
993 so->so_snd.sb_flags &= ~SB_LIMITED; in inp_recover_companion_link()
H A Dmptcp_usrreq.c193 if ((mp_so->so_rcv.sb_flags & SB_USRSIZE) == 0) { in mptcp_attach()
194 mp_so->so_rcv.sb_flags |= SB_AUTOSIZE; in mptcp_attach()
196 if ((mp_so->so_snd.sb_flags & SB_USRSIZE) == 0) { in mptcp_attach()
197 mp_so->so_snd.sb_flags |= SB_AUTOSIZE; in mptcp_attach()
205 mp_so->so_snd.sb_flags |= SB_NOCOMPRESS; in mptcp_attach()
1085 VERIFY(mp_so->so_snd.sb_flags & SB_NOCOMPRESS); in mptcp_usr_send()
H A Dtcp_output.c1266 (so->so_snd.sb_flags & (SB_AUTOSIZE | SB_TRIM)) == SB_AUTOSIZE) { in tcp_output()
2424 if (so->so_snd.sb_flags & SB_SENDHEAD) { in tcp_output()
2425 VERIFY(so->so_snd.sb_flags & SB_SENDHEAD); in tcp_output()
2460 if (so->so_snd.sb_flags & SB_SENDHEAD) { in tcp_output()
2461 VERIFY(so->so_snd.sb_flags & SB_SENDHEAD); in tcp_output()
3538 if (so->so_snd.sb_cc > 0 && so->so_snd.sb_flags & SB_SNDBYTE_CNT) { in tcp_ip_output()
3541 so->so_snd.sb_flags &= ~SB_SNDBYTE_CNT; in tcp_ip_output()
H A Dtcp_usrreq.c196 so->so_snd.sb_flags |= SB_SENDHEAD; in tcp_usr_attach()
1239 (so->so_snd.sb_flags & SB_NOCOMPRESS)); in tcp_usr_send()
3089 if ((so->so_rcv.sb_flags & SB_USRSIZE) == 0) { in tcp_attach()
3090 so->so_rcv.sb_flags |= SB_AUTOSIZE; in tcp_attach()
3092 if ((so->so_snd.sb_flags & SB_USRSIZE) == 0) { in tcp_attach()
3093 so->so_snd.sb_flags |= SB_AUTOSIZE; in tcp_attach()
H A Din_pcb.c4124 so->so_snd.sb_flags |= SB_SNDBYTE_CNT; in inp_count_sndbytes()
4183 if (so == NULL || !(so->so_snd.sb_flags & SB_SNDBYTE_CNT)) { in inp_decr_sndbytes_unsent()
4204 if (so == NULL || !(so->so_snd.sb_flags & SB_SNDBYTE_CNT)) { in inp_decr_sndbytes_allunsent()
H A Dmptcp.c720 if ((mp_so->so_snd.sb_flags & (SB_AUTOSIZE | SB_TRIM)) == SB_AUTOSIZE) { in mptcp_output()
H A Dtcp_input.c1023 (sbrcv->sb_flags & SB_AUTOSIZE) == 0 || in tcp_sbrcv_grow()
1190 if (((sbsnd->sb_flags & (SB_AUTOSIZE | SB_TRIM)) == in tcp_sbsnd_trim()
1203 sbsnd->sb_flags &= ~(SB_TRIM); in tcp_sbsnd_trim()
1223 (sbrcv->sb_flags & SB_AUTOSIZE) != 0) { in tcp_sbrcv_tstmp_check()
H A Dmptcp_subr.c1523 (*so)->so_rcv.sb_flags |= SB_NOCOMPRESS; in mptcp_subflow_socreate()
1524 (*so)->so_snd.sb_flags |= SB_NOCOMPRESS; in mptcp_subflow_socreate()
5837 (sbrcv->sb_flags & SB_AUTOSIZE) == 0 || in mptcp_sbrcv_grow()
H A Dtcp_subr.c3617 maxsockbufsize = ((so->so_rcv.sb_flags & SB_USRSIZE) != 0) ? in tcp_set_max_rwinscale()
4438 if ((so->so_snd.sb_flags & SB_SNDBYTE_CNT) && in inp_get_sndbytes_allunsent()
/xnu-10063.141.1/bsd/dev/dtrace/scripts/
H A Dsocket.d43 flags = T->sb_flags;
/xnu-10063.141.1/bsd/sys/
H A Dsocketvar.h180 uint32_t sb_flags; /* flags, see below */ member
435 short sb_flags; member
545 short sb_flags; member
/xnu-10063.141.1/bsd/net/
H A Dcontent_filter.c1549 while ((sb->sb_flags & SB_LOCK) || in cfil_acquire_sockbuf()
1562 msleep(&sb->sb_flags, mutex_held, PSOCK, "cfil_acquire_sockbuf", in cfil_acquire_sockbuf()
1573 VERIFY((sb->sb_flags & SB_LOCK) == 0); in cfil_acquire_sockbuf()
1576 sb->sb_flags |= SB_LOCK; in cfil_acquire_sockbuf()
1610 if (!(so->so_flags & SOF_DEFUNCT) && !(sb->sb_flags & SB_LOCK)) { in cfil_release_sockbuf()
1620 sb->sb_flags &= ~SB_LOCK; in cfil_release_sockbuf()
1623 wakeup(&sb->sb_flags); in cfil_release_sockbuf()
5243 if ((so->so_snd.sb_flags & SB_LOCK) == 0) { in cfil_sock_data_out()
5636 if ((sb->sb_flags & SB_RECV) == 0) { in cfil_sock_data_pending()
5679 if ((sb->sb_flags & SB_RECV) == 0) { in cfil_sock_data_space()
[all …]