aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/procstat/procstat_advlock.c
Commit message (Collapse)AuthorAgeFilesLines
* spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSDWarner Losh2023-05-121-1/+1
| | | | | | | | | The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch up to that fact and revert to their recommended match of BSD-2-Clause. Discussed with: pfg MFC After: 3 days Sponsored by: Netflix
* Implement procstat(1) advlocks commandKonstantin Belousov2022-04-091-0/+102
to display list of the advisory file locks in the system. Example output $ procstat advlock RW TYPE PID SYSID FSID RDEV INO START LEN PATH RO FCNTL 5836 0 0x878700ff02 0xffffffffffffffff 57 0 0 /tmp/2 RW FLOCK -1 0 0x878700ff02 0xffffffffffffffff 13 0 0 /tmp/1 Reviewed by: markj Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D34834