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