ctl_unnumbered.txt
来自「linux 内核源代码」· 文本 代码 · 共 23 行
TXT
23 行
Except for a few extremely rare exceptions user space applications do not usethe binary sysctl interface. Instead everyone uses /proc/sys/... withreadable ascii names.Recently the kernel has started supporting setting the binary sysctl value toCTL_UNNUMBERED so we no longer need to assign a binary sysctl path to allowsysctls to show up in /proc/sys.Assigning binary sysctl numbers is an endless source of conflicts in sysctl.h,breaking of the user space ABI (because of those conflicts), and maintenanceproblems. A complete pass through all of the sysctl users revealed multipleinstances where the sysctl binary interface was broken and had gone undetectedfor years.So please do not add new binary sysctl numbers. They are unneeded andproblematic.If you really need a new binary sysctl number please first merge your sysctlinto the kernel and then as a separate patch allocate a binary sysctl number.(ebiederm@xmission.com, June 2007)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?