comedi_check_chanlist(9)
β¨ comedi_check_chanlist β¨
okay bestie, welcome to the comedi_check_chanlist(9) page from the Kernel API Manual β we're doing a vibe check on chanlists today, and yes, it's giving kernel-dev main character energy. π
π¦
π NAME π
comedi_check_chanlist β Validate each element in a chanlist. literally the whole point, no cap. π
πΈ SYNOPSIS πΈ
int comedi_check_chanlist (struct comedi_subdevice *s , int n , unsigned
int *chanlist );
π ARGUMENTS π
sβ thecomedi_subdevicestruct, bestie. that's the subdevice we're checking against. πnβ number of elements in thechanlist. count 'em. π’chanlistβ thechanlistto validate. this is the star of the show. β
π¦ DESCRIPTION π¦
Each element consists of a channel number, a range index, an analog reference type and some flags, all packed into an unsigned int. it's giving tiny packed struct energy fr fr. π§
This checks that the channel number and range index are supported by the comedi subdevice. It does not check whether the analog reference type and the flags are supported. Drivers that care should check those themselves. π
β οΈ heads up, bestie: this function is not checking analog reference type or flags for you. if your driver cares about those, it has to check them itself. not me finding out the hard way π
π«Ά RETURN π«Ά
0β if allchanlistelements are valid (success), slay. π-EINVALβ if one or more elements are invalid. π
π SEE ALSO π
- Kernel file
./drivers/comedi/range.cβ go read it, iykyk. π
made with π for the comedi_check_chanlist(9) page β source/version: ./drivers/comedi, date: October 2026. bye bestie! π«Άβ¨
π¦ 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