input_mt_drop_unused(9)
π input_mt_drop_unused β like, the Kernel API Manual girlies know β¨
Okay bestie, sit down, grab a strawberry π β this one is from the Kernel API Manual and it's honestly such a tidy little function. No cap.
πΈ NAME πΈ
input_mt_drop_unused β inactivates the slots that didn't show up in this frame. Like, if your finger ghosted the touchscreen, its slot gets ghosted right back π
π SYNOPSIS π
void input_mt_drop_unused (struct input_dev *dev );
π¦ ARGUMENTS π¦
devβ the input device that has MT slots allocated. It's the main character here, obviously π
π DESCRIPTION π
So basically: this function lifts all the slots that haven't been seen since the last time you called it. Every slot that's been sitting there quiet, not getting any attention this frame? Yeah, it's getting lifted. Periodt. π«Ά
Think of it as the vibe check for your multitouch slots β if you didn't show up, you're out β¨
π₯ SEE ALSO π₯
Kernel file ./drivers/input/input-mt.c, plus the whole friend group:
input_mt_init_slots(9)input_mt_destroy_slots(9)input_mt_report_slot_state(9)input_mt_report_finger_count(9)input_mt_report_pointer_emulation(9)input_mt_release_slots(9)input_mt_sync_frame(9)input_mt_assign_slots(9)input_mt_get_slot_by_key(9)
They literally all live together in ./drivers/input and honestly? iconic found family energy π
ngl bestie, don't skip the SEE ALSO list β those functions are the ones doing the actual slot choreography, and input_mt_drop_unused is just the one who cleans up after the party π§Ήπ
Sign-off szn π β this page came straight out of ./drivers/input, dated October 2026. Slay, documented, archived, 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