mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 00:14:32 +09:00
docs: mention src/include/ directories
This commit is contained in:
@@ -20,6 +20,9 @@ There are many, and more are constantly added, so we will not enumerate them all
|
||||
|
||||
The code that is shared between components is split into a few directories, each with a different purpose:
|
||||
|
||||
- 'src/include/uapi/' contains copy of kernel headers we use.
|
||||
'src/include/override/' contains wrappers for libc and kernel headers, to provide several missing symbols.
|
||||
|
||||
- `src/basic/` and `src/fundamental/` — those directories contain code primitives that are used by all other code.
|
||||
`src/fundamental/` is stricter, because it used for EFI and user-space code, while `src/basic/` is only used for user-space code.
|
||||
The code in `src/fundamental/` cannot depend on any other code in the tree, and `src/basic/` can depend only on itself and `src/fundamental/`.
|
||||
@@ -43,6 +46,12 @@ Any code that is used only for EFI goes under `src/boot/efi/`, and `src/fundamen
|
||||
|
||||
To summarize:
|
||||
|
||||
`src/include/uapi/`
|
||||
- copy of kernel headers
|
||||
|
||||
`src/include/override/`
|
||||
- wrappers for libc and kernel headers
|
||||
|
||||
`src/fundamental/`
|
||||
- may be used by all code in the tree
|
||||
- may not use any code outside of `src/fundamental/`
|
||||
|
||||
Reference in New Issue
Block a user