Skip to content

Libbpf userspace function libbpf_set_memlock_rlim

0.7.0

Set the memlock resource limit for the current process.

Definition

int libbpf_set_memlock_rlim(size_t memlock_bytes);

Parameters

  • memlock_bytes: the number of bytes to set the memlock resource limit to.

Return

0, on success; <0, on error.

Usage

See resource limit concept page for more information.

Example

Docs could be improved

This part of the docs is incomplete, contributions are very welcome