comedi_inc_scan_progress(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… comedi_inc_scan_progress β€” like, the Linux Kernel API Manual page, bestie ✨

okay so this is the comedi_inc_scan_progress(9) page from the Kernel API Manual, and honestly? it's a little one-but-mighty situation πŸŽ€


✨ NAME ✨

comedi_inc_scan_progress β€” update scan progress in an asynchronous command πŸ¦‹


🌸 SYNOPSIS 🌸

void comedi_inc_scan_progress (struct comedi_subdevice *s , unsigned int
num_bytes );

like, that's the whole thing. no return value, no drama, just vibes and a void πŸ’…


🫢 ARGUMENTS 🫢

  • s β€” the COMEDI subdevice. that's your girl, the thing we're tracking progress on.
  • num_bytes β€” how much data, in bytes, we're bumping the scan progress by. the amount. the increment. the little push forward 😭

πŸ’– DESCRIPTION πŸ’–

so what this does is it increments the scan progress by the number of bytes you gave it in num_bytes. simple, clean, no notes.

and then here's the main character moment πŸ‘‘: if the scan progress reaches or exceeds the scan length in bytes, it reduces the scan progress modulo the scan length in bytes, and sets the "end of scan" asynchronous event flag, aka COMEDI_CB_EOS, to be processed later. periodt. that's the whole function.

ngl, the "reaches or exceeds" part matters β€” it's not just a strict equals situation, and the whole thing wraps around with the modulo rather than resetting to zero-ish. keep that in mind iykyk πŸ’€

πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./drivers/comedi/drivers.c β€” and the whole friend group of related calls, fr fr:


and that's the page!! 🧚 this little icon lives at ./drivers/comedi, dated October 2026, bestie β€” go forth and increment responsibly πŸ’œβ­

πŸ“¦ where this page comes from