hid_map_usage_clear(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay bestie, welcome to the hid_map_usage_clear(9) page from the Kernel API Manual ✨. No cap, we’re about to map some usage input bits and clear the input bit πŸ’….

🌸 NAME 🌸

hid_map_usage_clear β€” map usage input bits and clear the input bit. That’s the whole name, and honestly it ate 🫢.

✨ SYNOPSIS ✨

void hid_map_usage_clear (struct hid_input *hidinput , struct hid_usage
       *usage , unsigned long **bit , int *max , __u8 type , __u16 c );

πŸŽ€ ARGUMENTS πŸŽ€

  • hidinput β€” the hidinput we’re interested in πŸ‘€
  • usage β€” the usage to fill in
  • bit β€” pointer to input->{}bit (out parameter)
  • max β€” maximal valid usage->code to consider later (out parameter)
  • type β€” input event type (EV_KEY, EV_REL, ...)
  • c β€” code which corresponds to this usage and type

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so it’s literally the same as hid_map_usage, except the c bit is also cleared in supported bits (bit). That’s the whole plot twist 🎬. Periodt πŸ’–.

🌈 SEE ALSO 🌈

Kernel file: ./include/linux/hid.h


mwah πŸ’– this hid_map_usage_clear(9) page comes from ./include/linux, dated October 2026 β€” bye bestie, go slay those HID mappings πŸŽ€

πŸ“¦ where this page comes from