Defined in 1 files as a function:
Referenced in 1 files:
Smatch caller information:
drivers/net/netdevsim/dev.c nsim_drv_port_add() -> __nsim_dev_port_lookup()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | type | 0 |
| BUF_SIZE | 0 | nsim_dev | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | nsim_dev | s32min-(-2),1-s32max |
| DATA_SOURCE | 1 | type | $1 |
| DATA_SOURCE | 2 | port_index | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | nsim_dev | unit_byte |
| LOCK2 | &of->mutex | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex |
drivers/net/netdevsim/dev.c nsim_drv_port_del() -> __nsim_dev_port_lookup()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | type | 0 |
| BUF_SIZE | 0 | nsim_dev | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | nsim_dev | s32min-(-2),1-s32max |
| DATA_SOURCE | 1 | type | $1 |
| DATA_SOURCE | 2 | port_index | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | nsim_dev | unit_byte |
| LOCK2 | &of->mutex | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex |