Searched refs:sb_max (Results 1 - 6 of 6) sorted by relevance

/darwin-on-arm/xnu/bsd/kern/
H A Duipc_socket2.c119 /* Based on the number of mbuf clusters configured, high_sb_max and sb_max can get
121 * limit on sb_max that is checked when sb_max gets set through sysctl.
124 u_int32_t sb_max = SB_MAX; /* XXX should be static */ variable
684 if ((u_quad_t)cc > (u_quad_t)sb_max * MCLBYTES / (MSIZE + MCLBYTES))
687 sb->sb_mbmax = min(cc * sb_efficiency, sb_max);
2005 int error = sysctl_io_number(req, sb_max, sizeof(u_int32_t), &new_value,
2010 sb_max = new_value;
2040 &sb_max, 0, &sysctl_sb_max, "IU", "Maximum socket buffer size");
H A Duipc_mbuf.c1549 * Set the max limit on sb_max to be 1/16 th of the size of
1553 if (high_sb_max < sb_max) {
1554 /* sb_max is too large for this configuration, scale it down */
1557 sb_max = high_sb_max;
1563 sb_max = high_sb_max = (1 << MBSHIFT);
1565 sb_max = high_sb_max;
/darwin-on-arm/xnu/bsd/sys/
H A Dsocketvar.h552 extern u_int32_t sb_max;
/darwin-on-arm/xnu/bsd/netinet/
H A Dtcp_usrreq.c1618 * sb_max in sbreserve. Disallow setting the tcp send and recv space
1619 * to be more than sb_max because that will cause tcp_attach to fail
1627 u_quad_t sb_effective_max = (sb_max / (MSIZE+MCLBYTES)) * MCLBYTES;
H A Dudp_usrreq.c1646 /* Check that the values of udp send and recv space do not exceed sb_max */
1652 u_quad_t sb_effective_max = (sb_max/ (MSIZE+MCLBYTES)) * MCLBYTES;
H A Dtcp_input.c3629 if (th->th_urp + so->so_rcv.sb_cc > sb_max) {
4498 * Calculate corrected value for sb_max; ensure to upgrade the
4499 * numerator for large sb_max values else it will overflow.
4501 sb_max_corrected = (sb_max * (u_int64_t)MCLBYTES) / (MSIZE + MCLBYTES);

Completed in 106 milliseconds