Function lrs::syscall::prlimit

Retrieves or sets resource limits of a process.

Syntax

fn prlimit(pid: i32, res: i32, new: Option<&rlimit64>, old: Option<&mut rlimit64>) -> i32

Arguments

NameDescription
pid

The affected process.

res

The affected resource.

new

The (optional) new value of the resource.

old

A place where the previous value of the object will be stored.

Return value

Returns success or an error value.

See also