Function lrs::process::resource_limit

Returns a resource limit.

Syntax

fn resource_limit(process: i32, resource: Resource) -> Result<(u64, u64), Errno>

Arguments

NameDescription
process

The process whose resource limit to return.

resource

The resource whose limit to return.

Return value

Returns the soft limit in the first slot and the hard limit in the second slot.

See also