get_file_locks
Identify active file locks on Linux by querying /proc/locks, revealing type, mode, PID, byte range, and path. Use it to determine which process holds a lock.
Instructions
Returns active file locks from /proc/locks: type, mode, PID, byte range, and path. Read-only; an unreadable file is silently swallowed, parse errors go in the errors field. Use to find who holds a lock.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| locks | Yes | ||
| errors | No |