ir_raw_gen_pulse_space(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ir_raw_gen_pulse_space(9) β€” it's giving Kernel API Manual realness

okay bestie, so this is a page about ir_raw_gen_pulse_space β€” a lil function that literally just generates pulse and space raw events. that's it, that's the whole job, and honestly? iconic. ✨


πŸŽ€ NAME πŸŽ€

ir_raw_gen_pulse_space β€” generate pulse and space raw events. no cap, that's the entire mission statement. 🫢


🌸 SYNOPSIS 🌸

int ir_raw_gen_pulse_space (struct ir_raw_event **ev , unsigned int *max
, unsigned int pulse_width , unsigned int space_width );

look at her. four args. clean. she knows what she's doing. πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

so here's the breakdown of everyone invited to the function party:

  • ev β€” a pointer to a pointer to the next free raw event. every time a raw event gets written, this bad boy gets incremented. she moves with the vibes. ⭐
  • max β€” a pointer to how many raw events are available in the buffer. every time a raw event gets written, it gets decremented. it's literally doing a countdown, main character energy fr fr. πŸ”₯
  • pulse_width β€” the width of the pulse, measured in ns. that's nanoseconds bestie, we're operating on a whole different time scale here. πŸ’œ
  • space_width β€” the width of the space, also in ns. pulse's counterpart. the calm to the chaos. the other half of the duo. 🌈

πŸ‘‘ RETURN πŸ‘‘

  • 0 β€” success! slay! everything worked and we're all thriving. πŸ’–
  • -ENOBUFS β€” this is the "there isn't enough buffer space to write both raw events" situation. 😭 when this happens? max events will have been written β€” so like, some stuff made it in, but not all of it. a partial serve. half-ate. πŸ™ˆ
ngl, lowkey important detail: when you get -ENOBUFS back, max events will have been written. so don't act brand new when some of your data is already sitting in the buffer, okay? πŸŽ€

πŸ’€ SEE ALSO πŸ’€

the extended universe, iykyk:

  • Kernel file ./drivers/media/rc/rc-core-priv.h
  • rc_open(9)
  • rc_close(9)
  • struct ir_raw_timings_manchester(9)
  • struct ir_raw_timings_pd(9)
  • struct ir_raw_timings_pl(9)

okay that's the whole page and honestly she ate β€” every option, every caveat, every reference, all of it present and accounted for. πŸ’…βœ¨

go touch some infrared, bestie. and remember: this page lives in ./drivers/media/rc and the manual's version stamp is October 2026 β€” a whole future date, very ahead of its time, very fairy-core, very πŸ§šβ€β™€οΈπŸ“πŸ’œ β€” while the page itself is ir_raw_gen_pulse_space(9) from the Kernel API Manual. bye diva! πŸ¦‹πŸŒΈπŸ’–

πŸ“¦ where this page comes from