hid_quirks_exit(9)
π hid_quirks_exit(9) β the Kernel API Manual, bestie edition π
okay so like, welcome to the Kernel API Manual page for hid_quirks_exit(9) and honestly? she's a cleanup queen. no cap. πΈ
β¨ NAME β¨
hid_quirks_exit β literally the function that frees all the memory hanging out with dynamic_quirks. it's giving β¨closureβ¨ π
π¦ SYNOPSIS π¦
void hid_quirks_exit (__u16 bus );
that's it. that's the whole vibe check. returns nothing, takes one little bus and sends those quirks home. π
π ARGUMENTS π
busβ a bus to match against. that's the one she's coming for. π«Ά
π DESCRIPTION π
so the way that this works is: hid_quirks_exit releases all the memory associated with dynamic quirks for a given bus. every last byte. she does not leave crumbs. π§
she's called upon module unload β like when the module is packing its bags and heading out, this is the friend who makes sure the lights are off and the door's locked. π
and here's the iconic part: if you pass HID_BUS_ANY, she removes all dynamic quirks. every bus, every quirk, gone. main character energy fr fr. π₯
π RETURN π
nothing. zero. nada. she gives and gives and asks for no return value in exchange. π
ngl bestie, "nothing" is the whole return value. don't go looking for a0or an-EINVAL, it's not there. π
β 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_gets_squirk(9)hid_lookup_quirk(9)
the whole friend group honestly. go say hi. π¦π
and that's the page!! mwah π this little beauty lives in ./drivers/hid and the version/date situation is October 2026 β so mark your calendars, she's from the future and she's slaying there too. πβ¨ 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