module_load(2) - SerenityOS man pages

Name

module_load - load a kernel module

Synopsis

#include <serenity.h>

int module_load(const char* path, size_t path_length);

Description

module_load() will load a kernel module from an ELF object file given its path in the filesystem.

Return value

If the module is successfully loaded, module_load() returns 0. Otherwise, it returns -1 and sets errno to describe the error.

Errors

See also