Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 3 files:
- drivers/comedi/comedi_fops.c
- drivers/comedi/kcomedilib/kcomedilib_main.c, line 206
- drivers/comedi/range.c, line 131
Smatch caller information:
drivers/comedi/kcomedilib/kcomedilib_main.c comedi_do_insn() -> comedi_check_chanlist()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 4096-ptr_max |
| PARAM_VALUE | 0 | s->type | s32min-(-1),1-s32max |
| PARAM_VALUE | 1 | n | 1 |
| PARAM_VALUE | 2 | chanlist | 1968142233189658644,2598125972678799380,7745328413554655252 |
| PARAM_VALUE | 2 | *chanlist | 0-u16max |
| MEM_ZERO | 2 | chanlist | |
| USER_DATA | 2 | *chanlist | 0-u16max[c] |
| USER_PTR | 2 | chanlist | |
| LOCK2 | &dev->mutex | ||
| HALF_LOCKED2 | &dev->mutex | ||
| TYPE_LOCK | (struct comedi_device)->mutex |
drivers/comedi/comedi_fops.c __comedi_get_user_chanlist() -> comedi_check_chanlist()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 4096-ptr_max |
| PARAM_VALUE | 2 | chanlist | 1-ptr_max |
| BUF_SIZE | 2 | chanlist | 4 |
| CAPPED_DATA | 1 | n | 1 |
| DATA_SOURCE | 0 | s | $1 |
| DATA_SOURCE | 2 | chanlist | r memdup_array_user |
| USER_DATA | 1 | n | 0-s32max[c] |
| USER_DATA | 2 | *chanlist | 0-u32max |
| NO_OVERFLOW_SIMPLE | 1 | n | |
| USER_PTR | 2 | chanlist | |
| LOCK2 | &dev->mutex | ||
| TYPE_LOCK | (struct comedi_device)->mutex |
drivers/comedi/comedi_fops.c parse_insn() -> comedi_check_chanlist()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 4096-ptr_max |
| PARAM_VALUE | 0 | s->lock | 0,4096-ptr_max |
| PARAM_VALUE | 0 | s->type | s32min-(-1),1-s32max |
| PARAM_VALUE | 1 | n | 1 |
| PARAM_VALUE | 2 | chanlist | 4096-ptr_max |
| CAPPED_DATA | 0 | s->lock | 1 |
| USER_DATA | 2 | *chanlist | 0-u32max |
| USER_PTR | 2 | chanlist | |
| LOCK2 | &dev->mutex | ||
| TYPE_LOCK | (struct comedi_device)->mutex |