Searched refs:optmem_max (Results 1 – 5 of 5) sorted by relevance
267 static int optmem_max; in get_optmem_max() local269 if (!optmem_max) { in get_optmem_max()271 &optmem_max) || optmem_max <= 0) { in get_optmem_max()272 optmem_max = sizeof(long long) * (2 * IOV_MAX + 512); in get_optmem_max()274 optmem_max = (optmem_max + sizeof(long long) - 1) in get_optmem_max()279 return optmem_max; in get_optmem_max()
21124 /proc/sys/net/core/optmem_max, we do not print them either.27641 buffer size specified in /proc/sys/net/core/optmem_max file.
800 int optmem_max; in test_big_len() local802 if (read_int_from_file("/proc/sys/net/core/optmem_max", &optmem_max) in test_big_len()803 || optmem_max <= 0 || optmem_max > 0x100000) in test_big_len()804 optmem_max = sizeof(long long) * (2 * IOV_MAX + 512); in test_big_len()805 optmem_max = (optmem_max + sizeof(long long) - 1) in test_big_len()808 const size_t len = optmem_max * 2; in test_big_len()825 print_fds(cmsg, optmem_max); in test_big_len()