~/talk

Tackling challenges with HID and related device driver support in Rust

Talkat Linux Plumbers Conference 2025 · 2025-12-11..12-13· [rust]
links:none on file
slides:none on file

Upstream patches already enable a specific mouse device so its buttons work around a hardware bug, and out‑of‑tree work exposes many Razer Blade controls; the experimental drivers function but remain unmerged. Major blockers are concrete: bindgen treats defines as u32 forcing manual maps to u16/u8 enums, HID item bytes come out as u32 instead of u8, and const evaluation prevents using the standard From/Into so a custom const into_raw is used. Proposed fixes: C enums/C23, header annotations, or a derive macro to generate safe conversions.

AI-written summary · about

  1. 0:00Introduction and motivation
  2. 1:03HID protocol and Rust challenges
  3. 3:15HID groups and type mismatches
  4. 7:37HID items and bindgen issues
  5. 11:48USB HID device ID tables
  6. 16:02Type conversions and safety
  7. 20:14Solutions and future work
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.