comedi_buf_n_bytes_ready(9)
π comedi_buf_n_bytes_ready(9) π
okay so this is a page from the Kernel API Manual, and it's all about comedi_buf_n_bytes_ready β yes the name is a whole mouthful, we love her anyway π«Ά
β¨ NAME β¨
comedi_buf_n_bytes_ready β literally just tells you how much unread data is chilling in the buffer π
πΈ SYNOPSIS πΈ
unsigned int comedi_buf_n_bytes_ready (struct comedi_subdevice *s );
that's it. one function, one argument, no drama (for once) β¨
π ARGUMENTS π
sβ the COMEDI subdevice. that's the whole vibe check for this one, bestie π
π¦ DESCRIPTION π¦
okay so here's what she does: comedi_buf_n_bytes_ready determines the number of bytes of unread data sitting in the asynchronous acquisition data buffer for a subdevice π count them. that's the job.
and here's the little caveat you need to know, no cap: the data in question might not have been fully "munged" yet π like she's raw, she's unprocessed, she's still getting her glam on. so don't assume it's all ready-ready just because the byte count is there π
β RETURN β
returns the amount of unread data β in bytes, obviously, iykyk π₯
π SEE ALSO π
like, go read these too, they're all connected fr fr:
- the kernel file
./include/linux/comedi/comedidev.h, plus: struct comedi_subdevice(9)struct comedi_buf_page(9)struct comedi_buf_map(9)struct comedi_async(9)enum comedi_cb(9)struct comedi_driver(9)struct comedi_device(9)struct comedi_lrange(9)comedi_range_is_bipolar(9)comedi_range_is_unipolar(9)comedi_range_is_external(9)comedi_chan_range_is_bipolar(9)comedi_chan_range_is_unipolar(9)comedi_chan_range_is_external(9)comedi_offset_munge(9)comedi_bytes_per_sample(9)comedi_sample_shift(9)comedi_bytes_to_samples(9)comedi_samples_to_bytes(9)comedi_check_trigger_src(9)comedi_check_trigger_is_unique(9)comedi_check_trigger_arg_is(9)comedi_check_trigger_arg_min(9)comedi_check_trigger_arg_max(9)__comedi_request_region(9)comedi_request_region(9)module_comedi_driver(9)
bestie that's a lot of cross-references π but she said read the whole syllabus, so we read the whole syllabus πβ¨
and that's the whole page, mwah π this cutie lives in ./include/linux/comedi, dated October 2026, and she answers to the name comedi_buf_n_bytes_ready(9) β slay, periodt, go read your kernel headers π§π
π¦ 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