Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 6 files:
- drivers/base/attribute_container.c, line 172
- drivers/base/bus.c
- drivers/base/core.c
- drivers/base/dd.c, line 456
- lib/klist.c, line 139
- lib/tests/list-test.c
Smatch caller information:
drivers/base/attribute_container.c attribute_container_add_device() -> klist_add_tail()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | n | 4096-ptr_max |
| PARAM_VALUE | 1 | k | 4096-ptr_max |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | global &attribute_container_mutex | ||
| HALF_LOCKED2 | &host->add_target_mutex | ||
| HALF_LOCKED2 | &of->mutex |
drivers/base/bus.c bus_add_device() -> klist_add_tail()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | n | 4096-ptr_max |
| PARAM_VALUE | 1 | k | 4096-ptr_max |
| NOCHECK_CALL |
drivers/base/bus.c bus_add_driver() -> klist_add_tail()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | n | 4096-ptr_max |
| PARAM_VALUE | 1 | k | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | global &ipmi_interfaces_mutex | ||
| HALF_LOCKED2 | global &table_lock |
drivers/base/core.c device_add() -> klist_add_tail()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | n | 4096-ptr_max |
| NOCHECK_CALL |
drivers/base/core.c device_add() -> klist_add_tail()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | n | 4096-ptr_max |
| PARAM_VALUE | 1 | k | 4096-ptr_max |
| NOCHECK_CALL | |||
| LOCK2 | &sp->mutex | ||
| TYPE_LOCK | (struct subsys_private)->mutex |
drivers/base/core.c device_move() -> klist_add_tail()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | n | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | global &dpm_list_mtx | ||
| HALF_LOCKED2 | &hdev->lock | ||
| HALF_LOCKED2 | _T->lock |
drivers/base/core.c device_move() -> klist_add_tail()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | n | 4096-ptr_max |
| PARAM_VALUE | 0 | n->n_klist | 0,4096-ptr_max |
| PARAM_VALUE | 0 | n->n_node.next | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | global &dpm_list_mtx | ||
| HALF_LOCKED2 | &hdev->lock | ||
| HALF_LOCKED2 | _T->lock |
drivers/base/dd.c driver_bound() -> klist_add_tail()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | n | 136,4096-ptr_max |
| PARAM_VALUE | 0 | n->n_klist | 0 |
| PARAM_VALUE | 1 | k | 4096-ptr_max |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &dev->mutex |
lib/tests/list-test.c klist_test_add_tail() -> klist_add_tail()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | n | 447017365591040000 |
| PARAM_VALUE | 1 | k | 1375355288024154112 |
| PARAM_VALUE | 1 | k->get | 219889267673993216 |
| PARAM_VALUE | 1 | k->k_list.next | 4096-ptr_max |
| PARAM_VALUE | 1 | k->k_list.prev | 4096-ptr_max |
| PARAM_VALUE | 1 | k->put | 0 |
| NOCHECK_CALL |
lib/tests/list-test.c klist_test_add_tail() -> klist_add_tail()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | n | 1480916729383534592 |
| PARAM_VALUE | 1 | k | 1375355288024154112 |
| PARAM_VALUE | 1 | k->get | 219889267673993216 |
| PARAM_VALUE | 1 | k->k_list.next | 4096-ptr_max |
| PARAM_VALUE | 1 | k->k_list.prev | 4096-ptr_max |
| PARAM_VALUE | 1 | k->put | 0 |
| NOCHECK_CALL |
lib/tests/list-test.c klist_test_del_refcount_greater_than_zero() -> klist_add_tail()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | n | 2633838353571848192 |
| PARAM_VALUE | 1 | k | 1110063589052612608 |
| PARAM_VALUE | 1 | k->get | 219889267673993216 |
| PARAM_VALUE | 1 | k->k_list.next | 4096-ptr_max |
| PARAM_VALUE | 1 | k->k_list.prev | 4096-ptr_max |
| PARAM_VALUE | 1 | k->put | 7818476545058041856 |
| NOCHECK_CALL |
lib/tests/list-test.c klist_test_del_refcount_greater_than_zero() -> klist_add_tail()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | n | 2945584119420235776 |
| PARAM_VALUE | 1 | k | 1110063589052612608 |
| PARAM_VALUE | 1 | k->get | 219889267673993216 |
| PARAM_VALUE | 1 | k->k_list.next | 4096-ptr_max |
| PARAM_VALUE | 1 | k->k_list.prev | 4096-ptr_max |
| PARAM_VALUE | 1 | k->put | 7818476545058041856 |
| NOCHECK_CALL |
lib/tests/list-test.c klist_test_del_refcount_greater_than_zero() -> klist_add_tail()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | n | 3061953330037948416 |
| PARAM_VALUE | 1 | k | 1110063589052612608 |
| PARAM_VALUE | 1 | k->get | 219889267673993216 |
| PARAM_VALUE | 1 | k->k_list.next | 4096-ptr_max |
| PARAM_VALUE | 1 | k->k_list.prev | 4096-ptr_max |
| PARAM_VALUE | 1 | k->put | 7818476545058041856 |
| NOCHECK_CALL |
lib/tests/list-test.c klist_test_del_refcount_greater_than_zero() -> klist_add_tail()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | n | 5677608198068187136 |
| PARAM_VALUE | 1 | k | 1110063589052612608 |
| PARAM_VALUE | 1 | k->get | 219889267673993216 |
| PARAM_VALUE | 1 | k->k_list.next | 4096-ptr_max |
| PARAM_VALUE | 1 | k->k_list.prev | 4096-ptr_max |
| PARAM_VALUE | 1 | k->put | 7818476545058041856 |
| NOCHECK_CALL |
lib/tests/list-test.c klist_test_del_refcount_zero() -> klist_add_tail()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | n | 1352759445656129536 |
| PARAM_VALUE | 1 | k | 1641452512474484736 |
| PARAM_VALUE | 1 | k->get | 219889267673993216 |
| PARAM_VALUE | 1 | k->k_list.next | 4096-ptr_max |
| PARAM_VALUE | 1 | k->k_list.prev | 4096-ptr_max |
| PARAM_VALUE | 1 | k->put | 7818476545058041856 |
| NOCHECK_CALL |
lib/tests/list-test.c klist_test_del_refcount_zero() -> klist_add_tail()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | n | 6755141375330983936 |
| PARAM_VALUE | 1 | k | 1641452512474484736 |
| PARAM_VALUE | 1 | k->get | 219889267673993216 |
| PARAM_VALUE | 1 | k->k_list.next | 4096-ptr_max |
| PARAM_VALUE | 1 | k->k_list.prev | 4096-ptr_max |
| PARAM_VALUE | 1 | k->put | 7818476545058041856 |
| NOCHECK_CALL |
lib/tests/list-test.c klist_test_del_refcount_zero() -> klist_add_tail()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | n | 2594605634384244736 |
| PARAM_VALUE | 1 | k | 1641452512474484736 |
| PARAM_VALUE | 1 | k->get | 219889267673993216 |
| PARAM_VALUE | 1 | k->k_list.next | 4096-ptr_max |
| PARAM_VALUE | 1 | k->k_list.prev | 4096-ptr_max |
| PARAM_VALUE | 1 | k->put | 7818476545058041856 |
| NOCHECK_CALL |
lib/tests/list-test.c klist_test_del_refcount_zero() -> klist_add_tail()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | n | 12881627545268224 |
| PARAM_VALUE | 1 | k | 1641452512474484736 |
| PARAM_VALUE | 1 | k->get | 219889267673993216 |
| PARAM_VALUE | 1 | k->k_list.next | 4096-ptr_max |
| PARAM_VALUE | 1 | k->k_list.prev | 4096-ptr_max |
| PARAM_VALUE | 1 | k->put | 7818476545058041856 |
| NOCHECK_CALL |
lib/tests/list-test.c klist_test_remove() -> klist_add_tail()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | n | 5961256493017473024 |
| PARAM_VALUE | 1 | k | 2620473255834009600 |
| PARAM_VALUE | 1 | k->get | 219889267673993216 |
| PARAM_VALUE | 1 | k->k_list.next | 4096-ptr_max |
| PARAM_VALUE | 1 | k->k_list.prev | 4096-ptr_max |
| PARAM_VALUE | 1 | k->put | 7818476545058041856 |
| NOCHECK_CALL |
lib/tests/list-test.c klist_test_remove() -> klist_add_tail()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | n | 2213782149419323392 |
| PARAM_VALUE | 1 | k | 2620473255834009600 |
| PARAM_VALUE | 1 | k->get | 219889267673993216 |
| PARAM_VALUE | 1 | k->k_list.next | 4096-ptr_max |
| PARAM_VALUE | 1 | k->k_list.prev | 4096-ptr_max |
| PARAM_VALUE | 1 | k->put | 7818476545058041856 |
| NOCHECK_CALL |
lib/tests/list-test.c klist_test_remove() -> klist_add_tail()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | n | 6152202847134539776 |
| PARAM_VALUE | 1 | k | 2620473255834009600 |
| PARAM_VALUE | 1 | k->get | 219889267673993216 |
| PARAM_VALUE | 1 | k->k_list.next | 4096-ptr_max |
| PARAM_VALUE | 1 | k->k_list.prev | 4096-ptr_max |
| PARAM_VALUE | 1 | k->put | 7818476545058041856 |
| NOCHECK_CALL |
lib/tests/list-test.c klist_test_remove() -> klist_add_tail()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | n | 3010941698034491392 |
| PARAM_VALUE | 1 | k | 2620473255834009600 |
| PARAM_VALUE | 1 | k->get | 219889267673993216 |
| PARAM_VALUE | 1 | k->k_list.next | 4096-ptr_max |
| PARAM_VALUE | 1 | k->k_list.prev | 4096-ptr_max |
| PARAM_VALUE | 1 | k->put | 7818476545058041856 |
| NOCHECK_CALL |