hid_gets_squirk(9)
β¨ hid_gets_squirk(9) β¨
okay bestie, welcome to the Kernel API Manual π this one's a lil kernel function from the HID corner of the world and honestly? it's giving "small but iconic."
πΈ NAME πΈ
hid_gets_squirk β no cap, this is the one that hands you back any static quirks for a HID device π«Ά
π SYNOPSIS π
unsigned long hid_gets_squirk (const struct hid_device *hdev );
like literally that's the whole signature, she's compact π
π¦ ARGUMENTS π¦
hdevβ the HID device you're trying to match, bestie. that's the one you pass in π―
β DESCRIPTION β
so here's the vibe: you give it a HID device, and it returns a pointer to the quirked hid_device_id entry associated with that device. that's it, that's the whole function β main character energy, no filler π
π RETURN π
the quirks. periodt. β¨
π SEE ALSO π
- Kernel file
./drivers/hid/hid-quirks.c hid_exists_dquirk(9)hid_modify_dquirk(9)hid_remove_all_dquirks(9)hid_quirks_init(9)hid_quirks_exit(9)hid_lookup_quirk(9)
fr fr go read the friends too, they're all hanging out in the same file π§
okay that's the page!! mwah π this lil writeup lives in ./drivers/hid and it's dated October 2026 β luv u, bye! ππ
π¦ 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