Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 2 files:
Smatch caller information:
drivers/comedi/drivers.c __comedi_device_postconfig_async() -> comedi_buf_alloc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->driver | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->driver->attach | 0,4096-ptr_max |
| PARAM_VALUE | 0 | dev->driver->auto_attach | 0,4096-ptr_max |
| PARAM_VALUE | 0 | dev->driver->board_name | 0,4096-ptr_max |
| PARAM_VALUE | 0 | dev->driver->module | 0 |
| PARAM_VALUE | 0 | dev->driver->num_names | 0-5,7-8,11,13-14,18,22 |
| PARAM_VALUE | 0 | dev->get_valid_routes | 1-u64max |
| PARAM_VALUE | 0 | dev->insn_device_config | 1-u64max |
| PARAM_VALUE | 0 | dev->mutex.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | dev->mutex.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | dev->mutex.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | dev->mutex.first_waiter->list.prev->prev | 5159360019465732096 |
| PARAM_VALUE | 0 | dev->mutex.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | dev->mutex.wait_lock.owner | (-1) |
| PARAM_VALUE | 0 | dev->mutex.wait_lock.owner_cpu | u32max |
| PARAM_VALUE | 0 | dev->n_subdevices | 1-s32max |
| PARAM_VALUE | 0 | dev->subdevices | 4096-ptr_max |
| PARAM_VALUE | 1 | s | 4096-ptr_max |
| PARAM_VALUE | 1 | s->async | 4096-ptr_max |
| PARAM_VALUE | 1 | s->async->run_complete.done | 0 |
| PARAM_VALUE | 1 | s->async->run_complete.wait.lock.magic | 3735899821 |
| PARAM_VALUE | 1 | s->async->run_complete.wait.lock.owner | (-1) |
| PARAM_VALUE | 1 | s->async->run_complete.wait.lock.owner_cpu | u32max |
| PARAM_VALUE | 1 | s->async->run_complete.wait.task_list.next | 4096-ptr_max |
| PARAM_VALUE | 1 | s->async->run_complete.wait.task_list.prev | 4096-ptr_max |
| PARAM_VALUE | 1 | s->async->wait_head.head.next | 4096-ptr_max |
| PARAM_VALUE | 1 | s->async->wait_head.head.prev | 4096-ptr_max |
| PARAM_VALUE | 1 | s->do_cmd | 1-u64max |
| PARAM_VALUE | 1 | s->do_cmdtest | 1-u64max |
| PARAM_VALUE | 1 | s->len_chanlist | s32min-(-1),1-s32max |
| PARAM_VALUE | 1 | s->subdev_flags | s32min-(-1),16384-s32max |
| PARAM_VALUE | 1 | s->type | s32min-(-1),1-s32max |
| BUF_SIZE | 1 | s->async | 352 |
| CAPPED_DATA | 0 | dev->minor | 1 |
| CAPPED_DATA | 2 | new_size | 1 |
| DATA_SOURCE | 0 | dev | $0 |
| DATA_SOURCE | 1 | s | $1 |
| FUZZY_MAX | 1 | s->len_chanlist | 1 |
| FUZZY_MAX | 1 | s->type | 4 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 2 | new_size | unit_byte |
| LOCK2 | 0 | &dev->mutex | |
| HALF_LOCKED2 | global &comedi_drivers_list_lock | ||
| TYPE_LOCK | (struct comedi_device)->mutex |
drivers/comedi/drivers.c comedi_device_detach_cleanup() -> comedi_buf_alloc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->attach_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | dev->attach_lock.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | dev->attach_lock.first_waiter->list.next | 2624917664208203776 |
| PARAM_VALUE | 0 | dev->attach_lock.first_waiter->list.prev | 2624917664208203776 |
| PARAM_VALUE | 0 | dev->attach_lock.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | dev->attach_lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | dev->attach_lock.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | dev->attach_lock.wait_lock.owner | (-1) |
| PARAM_VALUE | 0 | dev->attach_lock.wait_lock.owner_cpu | u32max |
| PARAM_VALUE | 0 | dev->attach_lock.wait_lock.raw_lock.val.counter | 0-s32max |
| PARAM_VALUE | 0 | dev->attached | 0 |
| PARAM_VALUE | 0 | dev->driver | 0,4096-ptr_max |
| PARAM_VALUE | 0 | dev->driver->attach | 0,4096-ptr_max |
| PARAM_VALUE | 0 | dev->driver->auto_attach | 0,4096-ptr_max |
| PARAM_VALUE | 0 | dev->driver->board_name | 0,4096-ptr_max |
| PARAM_VALUE | 0 | dev->driver->detach | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->driver->module | 0 |
| PARAM_VALUE | 0 | dev->driver->num_names | 0-5,7-8,11,13-14,18,22 |
| PARAM_VALUE | 0 | dev->driver->offset | 0,8,16,24,32,40,48 |
| PARAM_VALUE | 0 | dev->mutex.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | dev->mutex.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | dev->mutex.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | dev->mutex.first_waiter->list.prev->prev | 5159360019465732096 |
| PARAM_VALUE | 0 | dev->mutex.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | dev->mutex.wait_lock.owner | (-1) |
| PARAM_VALUE | 0 | dev->mutex.wait_lock.owner_cpu | u32max |
| PARAM_VALUE | 0 | dev->n_subdevices | 1-s32max |
| PARAM_VALUE | 0 | dev->subdevices | 4096-ptr_max |
| PARAM_VALUE | 1 | s | 4096-ptr_max |
| PARAM_VALUE | 1 | s->async | 1-u64max |
| PARAM_VALUE | 2 | new_size | 0 |
| DATA_SOURCE | 0 | dev | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | 0 | &dev->attach_lock | |
| LOCK2 | 0 | &dev->mutex | |
| TYPE_LOCK | (struct comedi_device)->attach_lock | ||
| TYPE_LOCK | (struct comedi_device)->mutex |
drivers/comedi/comedi_fops.c resize_async_buffer() -> comedi_buf_alloc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 1-u64max |
| PARAM_VALUE | 0 | dev->mutex.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | dev->mutex.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | dev->mutex.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | dev->mutex.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | dev->mutex.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | dev->mutex.wait_lock.owner | (-1) |
| PARAM_VALUE | 0 | dev->mutex.wait_lock.owner_cpu | u32max |
| PARAM_VALUE | 1 | s | 4096-ptr_max |
| PARAM_VALUE | 1 | s->async | 4096-ptr_max |
| PARAM_VALUE | 1 | s->async->buf_map | 0,4096-ptr_max |
| PARAM_VALUE | 1 | s->async->buf_map->refcount.refcount.refs.counter | 0-1 |
| PARAM_VALUE | 1 | s->busy | 0 |
| CAPPED_DATA | 0 | dev | 1 |
| CAPPED_DATA | 2 | new_size | 1 |
| DATA_SOURCE | 0 | dev | $0 |
| DATA_SOURCE | 1 | s | $1 |
| BIT_INFO | 2 | new_size | 0x0,0xfffff000 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 2 | new_size | 0,4096-2147483648[c] |
| UNITS | 2 | new_size | unit_byte |
| LOCK2 | 0 | &dev->mutex | |
| HALF_LOCKED2 | &of->mutex | ||
| TYPE_LOCK | (struct comedi_device)->mutex |