input_copy_abs(9)
π input_copy_abs(9) β like, the Kernel API Manual page, bestie
okay so real talk: this is input_copy_abs(9) from the Kernel API Manual, and it's genuinely one of the cuter little helpers in the input subsystem. no cap. it's giving "copy-paste but make it kernel". π
β¨ NAME β¨
input_copy_abs β copy absinfo from one input_dev to another π¦
β¨ SYNOPSIS β¨
void input_copy_abs (struct input_dev *dst , unsigned int dst_axis ,
const struct input_dev *src , unsigned int src_axis );
β¨ ARGUMENTS β¨
dstβ the destination input device π the one you're copying the abs settings todst_axisβ anABS_*value that picks which axis on the destination side we're setting upsrcβ the source input device πΈ the one you're copying the abs settings from (note: it'sconst, she's read-only, she's not being touched)src_axisβ anABS_*value that picks which axis on the source side we're stealing from
β¨ DESCRIPTION β¨
So what it does is: it sets the absinfo for the destination axis you picked by copying it over from the source axis of the input device you specified. that's it. that's the whole vibe. π«Ά
And why is this iconic? because it's genuinely useful for stuff like setting up a pen/stylus input-device for combined touchscreen/pen hardware β the kind where the pen literally uses the same coordinates as the touchscreen. like, same energy, different device. π₯
β¨ SEE ALSO β¨
kernel file ./drivers/input/input.c and honestly the whole friend group:
input_event(9), input_inject_event(9), input_alloc_absinfo(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_get_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) π that's a lot of besties but every single one of them made the list, periodt.
ok tiny reminder: this page lives at./drivers/input, it's dated October 2026, and the whole thing is filed underinput_copy_abs(9). slay. π
go forth and copy those abs settings, you absolute icon ππ
π¦ 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