input_copy_abs(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 to
  • dst_axis β€” an ABS_* value that picks which axis on the destination side we're setting up
  • src β€” the source input device 🌸 the one you're copying the abs settings from (note: it's const, she's read-only, she's not being touched)
  • src_axis β€” an ABS_* 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 under input_copy_abs(9). slay. πŸ’œ

go forth and copy those abs settings, you absolute icon πŸ‘‘πŸ’…

πŸ“¦ where this page comes from