Function devices::virtio::input::evdev::grab_evdev

source ·
pub fn grab_evdev<T: AsRawDescriptor>(descriptor: &mut T) -> Result<()>
Expand description

Grabs an event device (see EVIOCGGRAB ioctl for details). After this function succeeds the given descriptor has exclusive access to the device, effectively making it unusable for any other process in the host.