diff options
Diffstat (limited to 'cpukit/libnetworking/kern/uipc_socket2.c')
-rw-r--r-- | cpukit/libnetworking/kern/uipc_socket2.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/cpukit/libnetworking/kern/uipc_socket2.c b/cpukit/libnetworking/kern/uipc_socket2.c index 62baf6f861..74f7e1c9b0 100644 --- a/cpukit/libnetworking/kern/uipc_socket2.c +++ b/cpukit/libnetworking/kern/uipc_socket2.c @@ -65,6 +65,15 @@ static u_long sb_efficiency = 8; /* parameter for sbreserve() */ SYSCTL_INT(_kern, OID_AUTO, sockbuf_waste_factor, CTLFLAG_RW, &sb_efficiency, 0, ""); +#if defined(__rtems__) + void rtems_set_sb_efficiency( + u_long efficiency + ) + { + sb_efficiency = (efficiency == 0) ? 2 : efficiency; + } +#endif + /* * Procedures to manipulate state flags of socket * and do appropriate wakeups. Normal sequence from the |