---
name: "__request_module"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/__request_module"
---

# \_\_request\_module(9)

try to load a kernel module

## NAME

\_\_request\_module - try to load a kernel module

## SYNOPSIS

**int \_\_request\_module(bool** *wait***, const char \*** *fmt***,** *...***);**

## ARGUMENTS

*wait*

wait (or not) for the operation to complete

*fmt*

printf style format string for the name of the module

*...*

arguments as specified in the format string

## DESCRIPTION

Load a module using the user mode module loader. The function returns zero on success or a negative errno code or positive exit code from “modprobe” on failure. Note that a successful module load does not mean the module did not then unload and exit on an error of its own. Callers must check that the service they requested is now available not blindly invoke it.

If module auto-loading support is disabled then this function simply returns -ENOENT.

## COPYRIGHT
