input_mt_destroy_slots(9)
π NAME π
ok so input_mt_destroy_slots β she literally frees the MT slots of the input device π¦ that's it, that's her whole job, and she's iconic for it
β¨ SYNOPSIS β¨
void input_mt_destroy_slots (struct input_dev *dev );
π ARGUMENTS π
devβ the input device that has the allocated MT slots, bestie π this is literally the thing you're handing over so the slots can get freed
πΈ DESCRIPTION πΈ
okay so here's the tea, and it's important: you only need this function in the error path π«Ά like, that's the only scenario. because the input core is a whole main character and will automatically free the MT slots when the device is destroyed anyway π no cap, she handles it herself.
so if you're sitting there like "hmm do I need to call this" β the answer is basically only when something went wrong on the way in, bestie π don't be doing extra work for no reason
π SEE ALSO π
kernel file ./drivers/input/input-mt.c and honestly the whole friend group π
go say hi to:
input_mt_init_slots(9)input_mt_report_slot_state(9)input_mt_report_finger_count(9)input_mt_report_pointer_emulation(9)input_mt_drop_unused(9)input_mt_release_slots(9)input_mt_sync_frame(9)input_mt_assign_slots(9)input_mt_get_slot_by_key(9)
π okay that's the whole page, periodt β¨ this little gem lives in ./drivers/input, dated October 2026, and it's called input_mt_destroy_slots(9) β go forth and only call it in your error paths, mwah ππ
π¦ 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