table of contents
other versions
- wheezy 0.5.14-8
HAL-LOCK(1) | General Commands Manual | HAL-LOCK(1) |
NAME¶
hal-lock - lock an interfaceSYNOPSIS¶
hal-lock [options]DESCRIPTION¶
hal-lock can be used to acquire a lock on a given interface either on a given device or globally. For more information about both the big picture and the semantics of HAL locks, refer to the HAL spec which can be found in /usr/share/doc/hal-doc/spec/hal-spec.html depending on the distribution.OPTIONS¶
The following options are supported:- --interface
- The name of the interface to lock.
- --run
- Program to run if the lock was acquired.
- --udi
- The UDI (Unique Device Identifier) of the device object. If this is ommitted, the global lock will be tried.
- --exclusive
- Whether the lock can be held by others.
- --exit-with-lock
- Kill the program if the acquired lock is lost. This only makes sense if you pass a specific UDI due to the semantics of HAL locks.
- --exit-with-dev
- Kill the program if the device is removed. This only makes sense if you pass a specific UDI due to the semantics of HAL locks.
- --help
- Print out usage.
- --version
- Print the version.