input_set_events_per_packet(9)
π input_set_events_per_packet(9) π
okay so bestie, welcome to input_set_events_per_packet(9) from the Kernel API Manual β this is the little kernel function that tells handlers about the driver event rate, and yes it ate β¨
πΈ NAME πΈ
input_set_events_per_packet β tell handlers about the driver event rate π«Ά
β¨ SYNOPSIS β¨
void input_set_events_per_packet (struct input_dev *dev , int n_events
);
π ARGUMENTS π
devβ the input device used by the driver πn_eventsβ the average number of events between calls toinput_syncβ
π¦ DESCRIPTION π¦
so like, if the event rate sent from a device is unusually large, use this function to set the expected event rate. no cap. this will allow handlers to set up an appropriate buffer size for the event stream, in order to minimize information loss π
it's giving "please prepare ur buffer, bestie, the events are coming" ππ₯
π SEE ALSO π
- Kernel file
./include/linux/input.h struct input_value(9)struct input_dev(9)struct input_handler(9)struct input_handle(9)struct ff_device(9)
mwah π β this iconic little page comes from ./include/linux, dated October 2026, and it's literally input_set_events_per_packet(9) signing off π«Άπ
π¦ 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