comedi_nscans_left(9)
π
comedi_nscans_left(9)
okay so bestie, this one is from the Kernel API Manual and it's literally about figuring out how many scans you have left in a COMEDI command. no cap. π
β¨ NAME β¨
comedi_nscans_left β return the number of scans left in the command π¦
πΈ SYNOPSIS πΈ
unsigned int comedi_nscans_left (struct comedi_subdevice *s , unsigned
int nscans );
π ARGUMENTS π
sβ COMEDI subdevice. the main character we're checking on. πnscansβ the expected number of scans, or0for all available scans. yes,0is the "gimme everything" vibe. β¨
π§ DESCRIPTION π§
so, if nscans is 0, it gets set to the number of scans available in the async buffer. periodt. π
and if the async command has a stop_src of TRIG_COUNT, then nscans gets checked against the number of scans remaining to complete the command. like a little vibe check for your scan count. π₯
the return value is then either the expected number of scans or the number of scans remaining to complete the command β whichever is fewer. that's it, that's the whole girlie. π«Ά
π SEE ALSO π
kernel file ./drivers/comedi/drivers.c, plus these iconic functions:
comedi_set_hw_dev(9)comedi_alloc_devpriv(9)comedi_alloc_subdevices(9)comedi_alloc_subdev_readback(9)comedi_readback_insn_read(9)comedi_timeout(9)comedi_dio_insn_config(9)comedi_dio_update_state(9)comedi_bytes_per_scan_cmd(9)comedi_bytes_per_scan(9)comedi_nsamples_left(9)comedi_inc_scan_progress(9)comedi_handle_events(9)comedi_load_firmware(9)__comedi_check_request_region(9)comedi_check_request_region(9)comedi_legacy_detach(9)comedi_auto_config(9)comedi_auto_unconfig(9)comedi_driver_register(9)comedi_driver_unregister(9)
mwah π this lil page is from the Kernel API Manual, sourced from ./drivers/comedi, dated October 2026 β comedi_nscans_left(9) out. ππΈ
π¦ 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