Skip to content

Commit

Permalink
Base: Document EPERM error in module_load(2) and module_unload(2)
Browse files Browse the repository at this point in the history
Only the superuser can use these system calls.
  • Loading branch information
awesomekling committed Jan 2, 2020
1 parent 4698a10 commit 0c22646
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions Base/usr/share/man/man2/module_load.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
1 change: 1 addition & 0 deletions Base/usr/share/man/man2/module_unload.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down

0 comments on commit 0c22646

Please sign in to comment.