cros_ec_sen...rocess_event(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ cros_ec_sen...rocess_event ✨

ok so bestie, welcome to the Kernel API Manual πŸ’… this one's a lil function from the kernel's ChromeOS EC sensor hub corner of the world, and yes the name is literally cros_ec_sen...rocess_event(9) β€” the manpage gods truncated it, we don't ask questions, we just vibe 🫢


🌸 NAME 🌸

cros_ec_sensor_ring_process_event β€” process one EC FIFO event. one. single. event. main character energy, but make it a FIFO entry πŸ’«


πŸ¦‹ SYNOPSIS πŸ¦‹

bool cros_ec_sensor_ring_process_event (struct cros_ec_sensorhub
*sensorhub , const struct ec_response_motion_sense_fifo_info *fifo_info
, const ktime_t fifo_timestamp , ktime_t *current_timestamp , struct
ec_response_motion_sensor_data *in , struct cros_ec_sensors_ring_sample
*out );

(it's bool, bestie β€” so you already know this one's gonna give you a yes or a no at the end 😌)


πŸŽ€ ARGUMENTS πŸŽ€

  • sensorhub β€” the Sensor Hub object. the whole vibe container, fr.
  • fifo_info β€” FIFO information straight from the EC, and it includes the b point plus the EC timebase. keep that in mind, it matters later πŸ‘€
  • fifo_timestamp β€” the EC IRQ, in kernel timebase β€” aka the c point. iconic.
  • current_timestamp β€” the calculated event timestamp, kernel timebase β€” aka a' (yes, a-prime, we're doing math notation in here, slay πŸ’…).
  • in β€” the incoming FIFO event from the EC, and it includes the a point in EC timebase.
  • out β€” the outgoing event headed to user space, and it includes a'. that's the whole point of the transformation, iykyk ✨

πŸ’œ DESCRIPTION πŸ’œ

Process one EC event, and add it into the ring if necessary. that's it, that's the whole job β€” one event in, ring gets updated when it needs to be, timestamp math happens in the background like a lil fairy doing chores 🧚


πŸ”₯ RETURN πŸ”₯

Returns true if the out event has been populated. so like β€” true means "yes queen, we filled it in", and anything else means it didn't happen. no cap 🫢


🌈 SEE ALSO 🌈


πŸ’– friendly reminder: every one of those arguments keeps its exact type and meaning β€” struct cros_ec_sensorhub *sensorhub, const struct ec_response_motion_sense_fifo_info *fifo_info, const ktime_t fifo_timestamp, ktime_t *current_timestamp, struct ec_response_motion_sensor_data *in, struct cros_ec_sensors_ring_sample *out. don't get cute with the pointers, that's how you get bugs 😭

ok that's the whole page!! mwah πŸ’‹ this one came out of ./drivers/platform/chrome, dated October 2026, and it's part of the Kernel API Manual β€” so go forth, process exactly one event, and slay βœ¨πŸ‘‘πŸ’…

πŸ“¦ where this page comes from