ctl_unnumbered.txt 962 B

12345678910111213141516171819202122
  1. Except for a few extremely rare exceptions user space applications do not use
  2. the binary sysctl interface. Instead everyone uses /proc/sys/... with
  3. readable ascii names.
  4. Recently the kernel has started supporting setting the binary sysctl value to
  5. CTL_UNNUMBERED so we no longer need to assign a binary sysctl path to allow
  6. sysctls to show up in /proc/sys.
  7. Assigning binary sysctl numbers is an endless source of conflicts in sysctl.h,
  8. breaking of the user space ABI (because of those conflicts), and maintenance
  9. problems. A complete pass through all of the sysctl users revealed multiple
  10. instances where the sysctl binary interface was broken and had gone undetected
  11. for years.
  12. So please do not add new binary sysctl numbers. They are unneeded and
  13. problematic.
  14. If you really need a new binary sysctl number please first merge your sysctl
  15. into the kernel and then as a separate patch allocate a binary sysctl number.
  16. (ebiederm@xmission.com, June 2007)