Defined in 4 files as a function:
- arch/powerpc/lib/rheap.c, line 121 (as a function)
- drivers/pci/hotplug/shpchp.h, line 192 (as a function)
- drivers/pci/slot.c, line 196 (as a function)
- net/sched/sch_netem.c, line 889 (as a function)
Referenced in 4 files:
- arch/powerpc/lib/rheap.c
- drivers/pci/hotplug/shpchp_core.c
- drivers/pci/slot.c, line 277
- net/sched/sch_netem.c, line 1153
Smatch caller information:
drivers/pci/slot.c pci_create_slot() -> get_slot()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | parent->self->link_bwctrl->cdev | 0-s64max |
| PARAM_VALUE | 1 | slot_nr | s32min-(-2),0-s32max |
| BUF_SIZE | 0 | parent | (-1)-s32max |
| BUF_SIZE | 0 | parent | (-1)-s32max |
| DATA_SOURCE | 0 | parent | $0 |
| DATA_SOURCE | 1 | slot_nr | $1 |
| STR_LEN | 0 | parent | 6-8,10-12,20 |
| STR_LEN | 0 | parent | 6-8,10-12,20 |
| STR_LEN | 1 | slot_nr | (-1),5,9-10,15,20 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 1 | slot_nr | 0-61[c] |
| LOCK2 | global &pci_slot_mutex | ||
| HALF_LOCKED2 | &hbus->state_lock | ||
| HALF_LOCKED2 | global &pci_rescan_remove_lock |
net/sched/sch_netem.c netem_change() -> get_slot()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | parent | 4096-ptr_max |
| PARAM_VALUE | 0 | parent->counter | 0 |
| PARAM_VALUE | 0 | parent->delay_dist->size | 0-4294967295 |
| PARAM_VALUE | 0 | parent->slot_dist->size | 0-4294967295 |
| PARAM_VALUE | 1 | slot_nr | 4096-ptr_max |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 0 | parent->cell_overhead | s32min-s32max |
| USER_DATA | 0 | parent->clg.a1 | 0-u32max |
| USER_DATA | 0 | parent->clg.a2 | 0-u32max |
| USER_DATA | 0 | parent->clg.a3 | 0-u32max |
| USER_DATA | 0 | parent->clg.a4 | 0-u32max |
| USER_DATA | 0 | parent->clg.a5 | 0-u32max |
| USER_DATA | 0 | parent->corrupt | 0-u32max |
| USER_DATA | 0 | parent->corrupt_cor.rho | 0-u32max |
| USER_DATA | 0 | parent->delay_cor.rho | 0-u32max |
| USER_DATA | 0 | parent->dup_cor.rho | 0-u32max |
| USER_DATA | 0 | parent->duplicate | 0-u32max |
| USER_DATA | 0 | parent->gap | 0-u32max |
| USER_DATA | 0 | parent->jitter | 0,64-274877906880[c] |
| USER_DATA | 0 | parent->latency | 0,64-274877906880[c] |
| USER_DATA | 0 | parent->limit | 0-u32max |
| USER_DATA | 0 | parent->loss | 0-u32max |
| USER_DATA | 0 | parent->loss_cor.rho | 0-u32max |
| USER_DATA | 0 | parent->packet_overhead | s32min-s32max |
| USER_DATA | 0 | parent->rate | 0-u32max |
| USER_DATA | 0 | parent->reorder | 0-u32max |
| USER_DATA | 0 | parent->reorder_cor.rho | 0-u32max |
| LOCK2 | bh |
drivers/pci/hotplug/shpchp_core.c disable_slot() -> get_slot()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | parent | 4096-ptr_max |
| DATA_SOURCE | 0 | parent | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &of->mutex | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex |
drivers/pci/hotplug/shpchp_core.c enable_slot() -> get_slot()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | parent | 4096-ptr_max |
| DATA_SOURCE | 0 | parent | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &of->mutex | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex |
drivers/pci/hotplug/shpchp_core.c get_adapter_status() -> get_slot()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | parent | 4096-ptr_max |
| BUF_SIZE | 0 | parent | (-1),32 |
| BUF_SIZE | 0 | parent | (-1),32 |
| BUF_SIZE | 0 | parent->ops | (-1),72 |
| DATA_SOURCE | 0 | parent | $0 |
| STR_LEN | 0 | parent->mod_name | (-1) |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 0 | parent->pci_slot->number | 0-61[c] |
| HALF_LOCKED2 | &of->mutex | ||
| HALF_LOCKED2 | &pool->lock |
drivers/pci/hotplug/shpchp_core.c get_attention_status() -> get_slot()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | parent | 4096-ptr_max |
| BUF_SIZE | 0 | parent | (-1),32 |
| BUF_SIZE | 0 | parent | (-1),32 |
| BUF_SIZE | 0 | parent->ops | (-1),72 |
| DATA_SOURCE | 0 | parent | $0 |
| STR_LEN | 0 | parent->mod_name | (-1) |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 0 | parent->pci_slot->number | 0-61[c] |
| HALF_LOCKED2 | &of->mutex | ||
| HALF_LOCKED2 | &pool->lock |
drivers/pci/hotplug/shpchp_core.c get_latch_status() -> get_slot()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | parent | 4096-ptr_max |
| BUF_SIZE | 0 | parent | (-1),32 |
| BUF_SIZE | 0 | parent | (-1),32 |
| BUF_SIZE | 0 | parent->ops | (-1),72 |
| DATA_SOURCE | 0 | parent | $0 |
| STR_LEN | 0 | parent->mod_name | (-1) |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 0 | parent->pci_slot->number | 0-61[c] |
| HALF_LOCKED2 | &of->mutex | ||
| HALF_LOCKED2 | &pool->lock |
drivers/pci/hotplug/shpchp_core.c get_power_status() -> get_slot()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | parent | 4096-ptr_max |
| BUF_SIZE | 0 | parent | (-1),32 |
| BUF_SIZE | 0 | parent | (-1),32 |
| BUF_SIZE | 0 | parent->ops | (-1),72 |
| DATA_SOURCE | 0 | parent | $0 |
| STR_LEN | 0 | parent->mod_name | (-1) |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 0 | parent->pci_slot->number | 0-61[c] |
| HALF_LOCKED2 | &of->mutex | ||
| HALF_LOCKED2 | &pool->lock |
drivers/pci/hotplug/shpchp_core.c set_attention_status() -> get_slot()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | parent | 4096-ptr_max |
| DATA_SOURCE | 0 | parent | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &of->mutex | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex |