Home
last modified time | relevance | path

Searched refs:sb_state (Results 1 – 14 of 14) sorted by relevance

/openbsd/sys/kern/
H A Dsys_socket.c124 *(int *)data = (so->so_rcv.sb_state & SS_RCVATMARK) != 0; in soo_ioctl()
152 if ((so->so_rcv.sb_state & SS_CANTRCVMORE) == 0 || in soo_stat()
156 if ((so->so_snd.sb_state & SS_CANTSENDMORE) == 0) in soo_stat()
H A Duipc_socket.c686 so->so_snd.sb_state |= SS_ISSENDING; in sosend()
719 so->so_snd.sb_state &= ~SS_ISSENDING; in sosend()
752 so->so_snd.sb_state &= ~SS_ISSENDING; in sosend()
774 so->so_snd.sb_state &= ~SS_ISSENDING; in sosend()
1153 so->so_rcv.sb_state &= ~SS_RCVATMARK; in soreceive()
1698 sosp->so_snd.sb_state |= SS_ISSENDING; in somove()
1840 rcvstate = so->so_rcv.sb_state; in somove()
1841 so->so_rcv.sb_state &= ~SS_RCVATMARK; in somove()
1846 so->so_rcv.sb_state |= SS_RCVATMARK; in somove()
1872 if (sosp->so_snd.sb_state & in somove()
[all …]
H A Duipc_socket2.c147 so->so_rcv.sb_state |= SS_CANTRCVMORE; in soisdisconnecting()
151 so->so_snd.sb_state |= SS_CANTSENDMORE; in soisdisconnecting()
165 so->so_rcv.sb_state |= SS_CANTRCVMORE; in soisdisconnected()
169 so->so_snd.sb_state |= SS_CANTSENDMORE; in soisdisconnected()
331 so->so_snd.sb_state |= SS_CANTSENDMORE; in socantsendmore()
343 so->so_rcv.sb_state |= SS_CANTRCVMORE; in socantrcvmore()
H A Duipc_syscalls.c291 if (head->so_rcv.sb_state & SS_CANTRCVMORE) in doaccept()
298 if (head->so_rcv.sb_state & SS_CANTRCVMORE) { in doaccept()
H A Dkern_sysctl.c1489 kf->so_state = so->so_state | so->so_snd.sb_state | in fill_file()
1490 so->so_rcv.sb_state; in fill_file()
H A Duipc_usrreq.c526 if (so->so_snd.sb_state & SS_CANTSENDMORE) { in uipc_send()
/openbsd/sys/sys/
H A Dsocketvar.h105 short sb_state; /* [m] socket state on sockbuf */ member
301 ((so)->so_snd.sb_state & SS_ISSENDING)
310 return (so->so_rcv.sb_state & SS_CANTRCVMORE) || so->so_qlen || in soreadable()
322 (so->so_snd.sb_state & SS_CANTSENDMORE) || so->so_error); in sowriteable()
/openbsd/sys/miscfs/fifofs/
H A Dfifo_vnops.c183 wso->so_snd.sb_state |= SS_CANTSENDMORE; in fifo_open()
196 wso->so_snd.sb_state &= ~SS_CANTSENDMORE; in fifo_open()
213 rso->so_rcv.sb_state &= ~SS_CANTRCVMORE; in fifo_open()
538 if (so->so_rcv.sb_state & SS_CANTRCVMORE) { in filt_fiforead()
572 if (so->so_snd.sb_state & SS_CANTSENDMORE) { in filt_fifowrite()
/openbsd/sys/netinet/
H A Draw_ip.c177 if (ISSET(READ_ONCE(inp->inp_socket->so_rcv.sb_state), in rip_input()
245 if (!ISSET(inp->inp_socket->so_rcv.sb_state, SS_CANTRCVMORE)) in rip_sbappend()
H A Dtcp_input.c335 if (so->so_rcv.sb_state & SS_CANTRCVMORE) in tcp_flush_queue()
1041 if (so->so_rcv.sb_state & SS_CANTRCVMORE) in tcp_input()
1795 if (so->so_rcv.sb_state & SS_CANTRCVMORE) { in tcp_input()
1902 so->so_rcv.sb_state |= SS_RCVATMARK; in tcp_input()
1945 if (so->so_rcv.sb_state & SS_CANTRCVMORE) in tcp_input()
H A Dtcp_usrreq.c766 if (so->so_snd.sb_state & SS_CANTSENDMORE) in tcp_shutdown()
911 (so->so_rcv.sb_state & SS_RCVATMARK) == 0) || in tcp_rcvoob()
H A Dudp_usrreq.c420 if (inp->inp_socket->so_rcv.sb_state & SS_CANTRCVMORE) in udp_input()
/openbsd/sys/netinet6/
H A Draw_ip6.c193 if (ISSET(READ_ONCE(inp->inp_socket->so_rcv.sb_state), in rip6_input()
291 if (!ISSET(inp->inp_socket->so_rcv.sb_state, SS_CANTRCVMORE)) in rip6_input()
/openbsd/sys/net/
H A Drtsock.c470 (so->so_rcv.sb_state & SS_CANTRCVMORE)) in rtm_senddesync()
536 (so->so_rcv.sb_state & SS_CANTRCVMORE)) in route_input()