FILE SYSTEMS
putSysctl()
M
X
800 SERIES PROGRAMMERS GUIDE 25
putSysctl()
Dynamically modifies the value of the kernel parameters in the /proc/sys
directories using the sysctl utility. The changes are valid until the terminal reboots.
Currently, users are limited to change only the /proc/sys/net/ipv4 kernel
parameters.
Prototype
int result = putSysctl(char *var, char *value, int vlen);
Parameters
Return Values
var Points to a null terminated string containing the kernel parameter and
value setting, in the format “variable=value”. Maximum length of the label
is 128 bytes.
= 0 Success
< 0 An error has occurred:
EINVAL = Invalid parameter
ENOENT = Invalid kernel parameter
ENOBUFS = Internal message error