hid_exists_dquirk(9)
π hid_exists_dquirk(9) β Kernel API Manual realness π
okay bestie, welcome to the hid_exists_dquirk(9) page β this is the Kernel API Manual, and we're finding any dynamic quirks for a HID device. let's get into it π«Ά
πΈ NAME πΈ
hid_exists_dquirk β find any dynamic quirks for a HID device
β¨ SYNOPSIS β¨
struct hid_device_id * hid_exists_dquirk (const struct hid_device *hdev
);
π ARGUMENTS π
hdevβ the HID device to match. that's the one we're checking against, bestie π―
π DESCRIPTION π
okay so here's the tea: it scans dquirks_list for a matching dynamic quirk, and if it finds one, it returns a pointer to the relevant struct hid_device_id. super straightforward, no cap β¨
but the lock rule is serious: it must be called with a read lock held on dquirks_lock. like, do not skip this, bestie π
π RETURN π
NULL if no quirk is found. struct hid_device_id * if found. literally that's the return vibe π
π¦ SEE ALSO π¦
Kernel file ./drivers/hid/hid-quirks.c plus these iconic functions:
hid_modify_dquirk(9)hid_remove_all_dquirks(9)hid_quirks_init(9)hid_quirks_exit(9)hid_gets_squirk(9)hid_lookup_quirk(9)
π okay that's the whole page, bestie! straight from ./drivers/hid, dated October 2026, and it's all about hid_exists_dquirk(9). periodt π
β¨
π¦ 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