MCPcopy Create free account
hub / github.com/emberian/evdev / write_events

Function write_events

src/lib.rs:547–550  ·  view source on GitHub ↗
(fd: std::os::fd::BorrowedFd<'_>, events: &[InputEvent])

Source from the content-addressed store, hash-verified

545}
546
547fn write_events(fd: std::os::fd::BorrowedFd<'_>, events: &[InputEvent]) -> nix::Result<()> {
548 let bytes = unsafe { cast_to_bytes(events) };
549 fd_write_all(fd, bytes)
550}
551
552/// Represents a force feedback effect that has been successfully uploaded to the device for
553/// playback.

Callers 6

send_eventsMethod · 0.85
set_ff_gainMethod · 0.85
set_ff_autocenterMethod · 0.85
playMethod · 0.85
stopMethod · 0.85
write_rawMethod · 0.85

Calls 2

cast_to_bytesFunction · 0.85
fd_write_allFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…