module_unload(2) - SerenityOS man pages

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

See also