README 4.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. This part of the documentation inside Documentation/ABI directory
  2. attempts to document the ABI between the Linux kernel and
  3. userspace, and the relative stability of these interfaces. Due to the
  4. everchanging nature of Linux, and the differing maturity levels, these
  5. interfaces should be used by userspace programs in different ways.
  6. We have four different levels of ABI stability, as shown by the four
  7. different subdirectories in this location. Interfaces may change levels
  8. of stability according to the rules described below.
  9. The different levels of stability are:
  10. stable/
  11. This directory documents the interfaces that the developer has
  12. defined to be stable. Userspace programs are free to use these
  13. interfaces with no restrictions, and backward compatibility for
  14. them will be guaranteed for at least 2 years. Most interfaces
  15. (like syscalls) are expected to never change and always be
  16. available.
  17. testing/
  18. This directory documents interfaces that are felt to be stable,
  19. as the main development of this interface has been completed.
  20. The interface can be changed to add new features, but the
  21. current interface will not break by doing this, unless grave
  22. errors or security problems are found in them. Userspace
  23. programs can start to rely on these interfaces, but they must be
  24. aware of changes that can occur before these interfaces move to
  25. be marked stable. Programs that use these interfaces are
  26. strongly encouraged to add their name to the description of
  27. these interfaces, so that the kernel developers can easily
  28. notify them if any changes occur (see the description of the
  29. layout of the files below for details on how to do this.)
  30. obsolete/
  31. This directory documents interfaces that are still remaining in
  32. the kernel, but are marked to be removed at some later point in
  33. time. The description of the interface will document the reason
  34. why it is obsolete and when it can be expected to be removed.
  35. removed/
  36. This directory contains a list of the old interfaces that have
  37. been removed from the kernel.
  38. Every file in these directories will contain the following information:
  39. What: Short description of the interface
  40. Date: Date created
  41. KernelVersion: (Optional) Kernel version this feature first showed up in.
  42. Note: git history often provides more accurate version
  43. info, so this field may be omitted.
  44. Contact: Primary contact for this interface (may be a mailing list)
  45. Description: Long description of the interface and how to use it.
  46. Users: All users of this interface who wish to be notified when
  47. it changes. This is very important for interfaces in
  48. the "testing" stage, so that kernel developers can work
  49. with userspace developers to ensure that things do not
  50. break in ways that are unacceptable. It is also
  51. important to get feedback for these interfaces to make
  52. sure they are working in a proper way and do not need to
  53. be changed further.
  54. Note:
  55. The fields should be use a simple notation, compatible with ReST markup.
  56. Also, the file **should not** have a top-level index, like::
  57. ===
  58. foo
  59. ===
  60. How things move between levels:
  61. Interfaces in stable may move to obsolete, as long as the proper
  62. notification is given.
  63. Interfaces may be removed from obsolete and the kernel as long as the
  64. documented amount of time has gone by.
  65. Interfaces in the testing state can move to the stable state when the
  66. developers feel they are finished. They cannot be removed from the
  67. kernel tree without going through the obsolete state first.
  68. It's up to the developer to place their interfaces in the category they
  69. wish for it to start out in.
  70. Notable bits of non-ABI, which should not under any circumstances be considered
  71. stable:
  72. - Kconfig. Userspace should not rely on the presence or absence of any
  73. particular Kconfig symbol, in /proc/config.gz, in the copy of .config
  74. commonly installed to /boot, or in any invocation of the kernel build
  75. process.
  76. - Kernel-internal symbols. Do not rely on the presence, absence, location, or
  77. type of any kernel symbol, either in System.map files or the kernel binary
  78. itself. See Documentation/process/stable-api-nonsense.rst.