input_mt_drop_unused(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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

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