input_set_timestamp(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

hii bestie πŸ’– welcome to input_set_timestamp(9) from the Kernel API Manual β€” yes, we're doing kernel vibes today, and this page is lowkey important ✨

πŸŽ€ NAME πŸŽ€

input_set_timestamp β€” sets the timestamp for input events πŸ•°οΈπŸ’…

✨ SYNOPSIS ✨

void input_set_timestamp (struct input_dev *dev , ktime_t timestamp );

🌸 ARGUMENTS 🌸

  • dev β€” the input device you're setting the timestamp for πŸ’–
  • timestamp β€” the time at which the event has occurred, in CLOCK_MONOTONIC ⏰✨

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so the whole point of this function is giving the input system a more accurate time of when an event actually occurred 😌 no cap, that's the vibe.

The driver should call this function as soon as a timestamp is acquired β€” that's how the clock conversions in input_set_timestamp get done correctly 🫢⏳

⚠️ heads up bestie: if the system enters suspend state between timestamp acquisition and calling input_set_timestamp, that can result in inaccurate conversions πŸ˜­πŸ’€ like, fr fr, that's the caveat.

πŸ‘‘ SEE ALSO πŸ‘‘


that's the whole page, bestie πŸ«ΆπŸ’– source/version: ./drivers/input Β· date: October 2026 🌈⭐

πŸ“¦ where this page comes from