hid_map_usage_clear(9)
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β thehidinputweβre interested in πusageβ the usage to fill inbitβ pointer toinput->{}bit(out parameter)maxβ maximal validusage->codeto 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
HID quirks(9)struct hid_battery(9)struct hid_driver(9)struct hid_ll_driver(9)module_hid_driver(9)hid_device_io_start(9)hid_device_io_stop(9)hid_map_usage(9)hid_parse(9)hid_hw_power(9)hid_hw_idle(9)hid_hw_may_wakeup(9)hid_hw_wait(9)hid_report_len(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms