input_get_timestamp(9)
π input_get_timestamp(9) π
okay so bestie, welcome to the Kernel API Manual, section 9 β we're doing input_get_timestamp today and it's honestly a little guy with a big job π«Ά
πΈ NAME πΈ
input_get_timestamp β literally just: grab the timestamp for input events β¨
π SYNOPSIS π
ktime_t * input_get_timestamp (struct input_dev *dev );
π¦ ARGUMENTS π¦
devβ the input device you're pulling the timestamp from. that's it, that's the whole argument π
β DESCRIPTION β
so here's the vibe check: a valid timestamp is a timestamp with a non-zero value. that's the rule, no cap π₯
π SEE ALSO π
listen, this function rolls with a huge friend group β the whole kernel file ./drivers/input/input.c plus:
input_event(9)input_inject_event(9)input_alloc_absinfo(9)input_copy_abs(9)input_grab_device(9)input_release_device(9)input_open_device(9)input_close_device(9)input_scancode_to_scalar(9)input_default_setkeycode(9)input_get_keycode(9)input_set_keycode(9)input_reset_device(9)input_allocate_device(9)devm_input_allocate_device(9)input_free_device(9)input_set_timestamp(9)input_set_capability(9)input_enable_softrepeat(9)input_register_device(9)input_unregister_device(9)input_register_handler(9)input_unregister_handler(9)input_handler_for_each_handle(9)input_register_handle(9)input_unregister_handle(9)input_get_new_minor(9)input_free_minor(9)
and that's the whole page, bestie β no notes, iconic behavior only π
π§ cute little sign-off: this one lives in./drivers/input, dated October 2026, and yes it's stillinput_get_timestamp(9)β slay π
π¦ 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