struct __sysctl_args {
int *name; /* integer vector describing variable */
int nlen; /* length of this vector */
void *oldval; /* 0 or address where to store old value */
size_t *oldlenp; /* available room for old value,
overwritten by actual size of old value */
void *newval; /* 0 or address of new value */
size_t newlen; /* size of new value */
};
此呼叫是 Linux 特定的,不應在旨在可移植的程式中使用。自 1.3.57 版本以來,Linux 中就存在sysctl() 呼叫。它起源於 4.4BSD。只有 Linux 具有/proc/sys映象,並且 Linux 和 4.4BSD 的物件命名方案有所不同,但是sysctl(2) 函式的宣告在兩者中是相同的。