ENUM COMEDI_CB(9)
π enum comedi_cb β the Kernel API Manual moment, bestie
okay so you're here for enum comedi_cb from the Kernel API Manual and honestly? this is the callback-events baddie of the comedi world. it's the &struct comedi_async callback "events" enum, and it's giving main character energy for every async command you'll ever run. π¦
β¨ NAME β¨
enum comedi_cb β the &struct comedi_async callback "events". that's it, that's the whole vibe. it's the little menu of event flags that tell everybody what just went down during an async command. π
πΈ SYNOPSIS πΈ
enum comedi_cb {
COMEDI_CB_EOS ,
COMEDI_CB_EOA ,
COMEDI_CB_BLOCK ,
COMEDI_CB_EOBUF ,
COMEDI_CB_ERROR ,
COMEDI_CB_OVERFLOW ,
COMEDI_CB_ERROR_MASK ,
COMEDI_CB_CANCEL_MASK
};
look at her. iconic. every single one of those constants is listed below, no cap, not skipping a single one π
π Constants π
COMEDI_CB_EOSβ end-of-scan. that's a wrap on one full scan, slay. βCOMEDI_CB_EOAβ end-of-acquisition/output. the whole acquisition or output is done done. periodt. π₯COMEDI_CB_BLOCKβ data has arrived, and this one wakes upread/write. your blocking calls finally get the memo πCOMEDI_CB_EOBUFβ DEPRECATED: end of buffer. she's retired, still on the list, but do not build your whole personality on her πCOMEDI_CB_ERRORβ card error during acquisition. not the vibe. the hardware said "no" πCOMEDI_CB_OVERFLOWβ buffer overflow/underflow. too much or too little, either way it's a mess π«ΆCOMEDI_CB_ERROR_MASKβ the mask of events that indicate an error has occurred. it's the little group chat of bad news πCOMEDI_CB_CANCEL_MASKβ the mask of events that will cancel an async command. these ones shut the whole thing down, so know them by heart π§
lowkey important: COMEDI_CB_EOBUF is DEPRECATED β the manpage says it right there, so treat her like a legacy queen and don't depend on her in new stuff. π
π SEE ALSO π
all the siblings and neighbours, fr fr β 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)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_buf_n_bytes_ready(9)__comedi_request_region(9)comedi_request_region(9)module_comedi_driver(9)
and that's the whole page, bestie β go forth and handle your callback events with main character energy π
<div align="center">π β¨ π</div>
okay bye, this came from the Kernel file ./include/linux/comedi, dated October 2026, and it's enum comedi_cb(9) all the way down. mwah ππ¦
π¦ 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