input_set_events_per_packet(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 to input_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