proc_locks(5) File Formats Manual proc_locks(5) /proc/locks - current file locks and leases /proc/locks This file shows current file locks (flock(2) and fcntl(2)) and leases (fcntl(2)). : 1: POSIX ADVISORY READ 5433 08:01:7864448 128 128 2: FLOCK ADVISORY WRITE 2001 08:01:7864554 0 EOF 3: FLOCK ADVISORY WRITE 1568 00:2f:32388 0 EOF 4: POSIX ADVISORY WRITE 699 00:16:28457 0 EOF 5: POSIX ADVISORY WRITE 764 00:16:21448 0 0 6: POSIX ADVISORY READ 3548 08:01:7867240 1 1 7: POSIX ADVISORY READ 3548 08:01:7865567 1826 2335 8: OFDLCK ADVISORY WRITE -1 08:01:8713209 128 191 : [1] . [2] . : FLOCK BSD, flock(2). OFDLCK (OFD), fcntl(2). POSIX POSIX, fcntl(2). [3] : ADVISORY . MANDATORY . [4] . : READ POSIX OFD BSD. WRITE POSIX OFD BSD. [5] PID , . Because OFD locks are not owned by a single process (since multiple processes may have file descriptors that refer to the same open file description), the value -1 is displayed in this field for OFD locks. (Before Linux 4.14, a bug meant that the PID of the process that initially acquired the lock was displayed instead of the value -1.) [6] : , , , . [7] . BSD 0. [8] . EOF , . BSD EOF. Linux 4.9, , /proc/locks, : PID ( pid_namespaces(7)), /proc ( PID ). lslocks(8) . proc(5) () Alexey, Azamat Hackimov , kogamatranslator49 , Darima Kogan , Max Is , Yuri Kozlov ; GNU (GNU General Public License - GPL, 3 ) , - . - , , () () () <>. Linux 6.9.1 2 2024 . proc_locks(5)