Function lrs::syscall::swapon

Adds a swap file/device.

Syntax

fn swapon(path: &CStr, flags: i32) -> i32

Arguments

NameDescription
path

The path of the file/device.

flags

Flags to modify the swap behavior.

See also