Query: lockdev
OS: centos
Section: 8
Links: centos man pages all man pages
Forums: unix linux community forum categories
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
LOCKDEV(8) LOCKDEV(8)NAMELockdev is a setgid binary, which provides a reliable way to put an exclusive lock in /var/lock to devices (e.g. ttyS0) using both FSSTND and SVr4 methods, so regular users don't need write access there. This task is achieved through calls to the liblockdev(3) API.SYNOPSIS/usr/sbin/lockdev [<operation>] <device>DESCRIPTIONThe lockdev command can perform one of the following operations (calls to liblockdev(3) API): -l - lock device with dev_lock() function -u - unlock device with dev_unlock() function no operation - test lock with dev_testlock() functionRETURN VALUESValue dev_lock dev_unlock dev_testlock 0 OK OK not locked 1 locked other locked other locked 2 EACCES 3 EROFS 4 EFAULT 5 EINVAL 6 ENAMETOOLONG 7 ENOENT 8 ENOTDIR 9 ENOMEM 10 ELOOP 11 EIO 12 EPERM 255 error error errorSEE ALSOlockdev(3). SEPTEMBER 2009 LOCKDEV(8)
Related Man Pages |
---|
flock(2) - bsd |
sdl_locksurface(3) - debian |
dev_testlock(3) - debian |
dev_unlock(3) - debian |
liblockdev(3) - debian |
Similar Topics in the Unix Linux Community |
---|
Blockdev vs /sys/block/ |