input_mt_destroy_slots(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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:


🌈 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