[][src]Function procfs::locks

pub fn locks() -> ProcResult<Vec<Lock>>

Get a list of current file locks and leases

Since Linux 4.9, the list of locks is filtered to show just the locks for the processes in the PID namespace for which the /proc filesystem was mounted.