Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 2 files:
Smatch caller information:
drivers/usb/gadget/function/f_mass_storage.c file_show() -> fsg_show_file()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | curlun | 4096-ptr_max |
| PARAM_VALUE | 2 | buf | 1-u64max |
| BUF_SIZE | 1 | filesem | s32min-(-2),1-s32max |
| BUF_SIZE | 1 | filesem | s32min-(-2),1-s32max |
| CAPPED_DATA | 2 | buf | 1 |
| DATA_SOURCE | 0 | curlun | r fsg_lun_from_dev |
| DATA_SOURCE | 2 | buf | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | filesem | unit_byte |
| LOCK2 | &of->mutex | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex |
drivers/usb/gadget/function/f_mass_storage.c fsg_lun_opts_file_show() -> fsg_show_file()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | filesem | 4096-ptr_max |
| PARAM_VALUE | 2 | buf | 1-u64max |
| BUF_SIZE | 2 | buf | (-1),4096 |
| BUF_SIZE | 2 | buf | (-1),4096 |
| DATA_SOURCE | 2 | buf | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &buffer->mutex | ||
| LOCK2 | &frag->frag_sem | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct configfs_buffer)->mutex | ||
| TYPE_LOCK | (struct configfs_fragment)->frag_sem |