Base: Document EPERM error in module_load(2) and module_unload(2)

Only the superuser can use these system calls.
This commit is contained in:
Andreas Kling 2020-01-02 12:35:19 +01:00
parent 4698a10dd1
commit 0c22646e2b
Notes: sideshowbarker 2024-07-19 10:26:03 +09:00
2 changed files with 2 additions and 0 deletions

View File

@ -22,6 +22,7 @@ returns -1 and sets `errno` to describe the error.
## Errors
* `EPERM`: The calling process does not have superuser permissions.
* `EFAULT`: `path` pointed to memory that was not accessible for the caller.
* `ENOEXEC`: The specified file could not be parsed as an ELF object.
* `ENOENT`: One or more symbols referred to by the module could not be resolved.

View File

@ -21,6 +21,7 @@ Otherwise, it returns -1 and sets `errno` to describe the error.
## Errors
* `EPERM`: The calling process does not have superuser permissions.
* `EFAULT`: `path` pointed to memory that was not accessible for the caller.
* `ENOENT`: There was no module loaded with the specified name.