hid_modify_dquirk(9)
okay bestie, welcome to the hid_modify_dquirk(9) page from the Kernel API Manual π
β¨ this one is literally about adding or replacing a HID quirk, and it's short but iconic.
πΈ NAME πΈ
hid_modify_dquirk β add/replace a HID quirk π
β¨ SYNOPSIS β¨
int hid_modify_dquirk (const struct hid_device_id *id , const unsigned
long quirks );
π ARGUMENTS π
idβ the HID device to match π«Άquirksβ theunsigned longquirks value to add/replace β
π DESCRIPTION π
So picture this: if a dynamic quirk is already sitting in memory for this device, it gets its quirks value swapped out for the one you provided. Glow-up, basically. β¨
Otherwise? The quirk gets added to the dynamic quirks list. That's the whole vibe check. π
π₯ RETURN π₯
Returns 0 for OK, or -error on failure. No cap. π
π SEE ALSO π
- Kernel file
./drivers/hid/hid-quirks.cπ¦ hid_exists_dquirk(9)hid_remove_all_dquirks(9)hid_quirks_init(9)hid_quirks_exit(9)hid_gets_squirk(9)hid_lookup_quirk(9)
source ./drivers/hid, date October 2026, page hid_modify_dquirk(9) β byeee bestie, go forth and quirk responsibly π«Άππ
π¦ 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