Skip to main content

evdev_switch_state

Function evdev_switch_state 

Source
pub fn evdev_switch_state<'b>(
    d: BorrowedFd<'_>,
    bitmap: &'b mut [u8],
) -> Result<&'b [u8], Errno>
Expand description

EVIOCGSW(len) — état des interrupteurs (capot, jack…).

§Errors

  • [Errno::ENOTTY] : device n’est pas un periphérique evdev.