serenity/Base/usr/share/man/man2/module_unload.md
Andreas Kling 0c22646e2b Base: Document EPERM error in module_load(2) and module_unload(2)
Only the superuser can use these system calls.
2020-01-02 12:35:19 +01:00

744 B

Name

module_unload - unload a kernel module

Synopsis

#include <serenity.h>

int module_unload(const char* name, size_t name_length);

Description

module_unload() will unload a kernel module by name.

Return value

If the module is successfully unloaded, module_unload() returns 0. 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.

See also