The lockdev library provides a reliable way to put an exclusive lock
on devices using both FSSTND and SVr4 methods. The lockdev-devel
package contains the development headers.
lockdev The lockdev functions act on device locks normally located in /var/lock . The lock is acquired creating a pair of files hardlinked between them and named after...