Documented in 1 files:
Defined in 1 files as a function:
Referenced in 8 files:
- include/kunit/resource.h, line 205
- lib/kunit/kunit-example-test.c, line 388
- lib/kunit/kunit-test.c
- lib/kunit/platform.c
- lib/kunit/resource.c
- lib/kunit/static_stub.c
- lib/tests/fortify_kunit.c, line 82
- mm/slub.c
Smatch caller information:
mm/slub.c slab_add_kunit_errors() -> kunit_put_resource()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | res | 4096-ptr_max |
| PARAM_VALUE | 0 | res->data | 4096-ptr_max |
| DATA_SOURCE | 0 | res | r kunit_find_named_resource |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &n->list_lock | ||
| HALF_LOCKED2 | flags | ||
| HALF_LOCKED2 | global &object_map_lock | ||
| HALF_LOCKED2 | global &slab_mutex | ||
| HALF_LOCKED2 | irq |
mm/slub.c slab_in_kunit_test() -> kunit_put_resource()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | res | 4096-ptr_max |
| DATA_SOURCE | 0 | res | r kunit_find_named_resource |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | global &slab_mutex |
lib/kunit/static_stub.c __kunit_activate_static_stub() -> kunit_put_resource()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | res | 4096-ptr_max |
| PARAM_VALUE | 0 | res->data | 4096-ptr_max |
| DATA_SOURCE | 0 | res | r kunit_find_resource |
| NOCHECK_CALL |
lib/kunit/static_stub.c __kunit_get_static_stub_address_impl() -> kunit_put_resource()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | res | 4096-ptr_max |
| PARAM_VALUE | 0 | res->data | 4096-ptr_max |
| DATA_SOURCE | 0 | res | r kunit_find_resource |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | rcu_read |
lib/kunit/static_stub.c kunit_deactivate_static_stub() -> kunit_put_resource()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | res | 4096-ptr_max |
| PARAM_VALUE | 0 | res->node.next->prev | 4096-ptr_max |
| DATA_SOURCE | 0 | res | r kunit_find_resource |
| NOCHECK_CALL |
lib/kunit/platform.c kunit_platform_device_add() -> kunit_put_resource()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | res | 4096-ptr_max |
| PARAM_VALUE | 0 | res->free | 3237644560955289600 |
| DATA_SOURCE | 0 | res | r kunit_find_resource |
| NOCHECK_CALL |
lib/kunit/platform.c kunit_platform_device_unregister() -> kunit_put_resource()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | res | 4096-ptr_max |
| PARAM_VALUE | 0 | res->free | 0 |
| DATA_SOURCE | 0 | res | r kunit_find_resource |
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
lib/tests/slub_kunit.c kunit_add_named_resource() -> kunit_put_resource()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | res | 4096-ptr_max |
| DATA_SOURCE | 0 | res | r kunit_find_named_resource |
| NOCHECK_CALL |
lib/kunit/kunit-example-test.c example_params_test_with_init() -> kunit_put_resource()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | res | 4096-ptr_max |
| PARAM_VALUE | 0 | res->data | 4096-ptr_max |
| DATA_SOURCE | 0 | res | r kunit_find_resource |
| NOCHECK_CALL |
lib/kunit/resource.c kunit_destroy_resource() -> kunit_put_resource()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | res | 4096-ptr_max |
| PARAM_VALUE | 0 | res->node.next->prev | 4096-ptr_max |
| DATA_SOURCE | 0 | res | r kunit_find_resource |
| NOCHECK_CALL |
lib/kunit/resource.c kunit_release_action() -> kunit_put_resource()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | res | 4096-ptr_max |
| PARAM_VALUE | 0 | res->node.next->prev | 4096-ptr_max |
| DATA_SOURCE | 0 | res | r kunit_find_resource |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
lib/kunit/resource.c kunit_remove_action() -> kunit_put_resource()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | res | 4096-ptr_max |
| PARAM_VALUE | 0 | res->free | 0 |
| PARAM_VALUE | 0 | res->node.next->prev | 4096-ptr_max |
| DATA_SOURCE | 0 | res | r kunit_find_resource |
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
lib/kunit/resource.c kunit_remove_resource() -> kunit_put_resource()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | res | 4096-ptr_max |
| BUF_SIZE | 0 | res | (-1),56 |
| BUF_SIZE | 0 | res | (-1),56 |
| CAPPED_DATA | 0 | res | 1 |
| CAPPED_DATA | 0 | &res->node | 1 |
| DATA_SOURCE | 0 | res | $1 |
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
lib/tests/fortify_kunit.c fortify_add_kunit_error() -> kunit_put_resource()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | res | 4096-ptr_max |
| PARAM_VALUE | 0 | res->data | 4096-ptr_max |
| DATA_SOURCE | 0 | res | r kunit_find_named_resource |
| NOCHECK_CALL |
lib/tests/fortify_kunit.c kunit_add_named_resource() -> kunit_put_resource()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | res | 4096-ptr_max |
| DATA_SOURCE | 0 | res | r kunit_find_named_resource |
| NOCHECK_CALL |
lib/kunit/kunit-test.c fake_resource_1_init() -> kunit_put_resource()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | res | 0,4096-ptr_max |
| PARAM_VALUE | 0 | res->data | 1-u64max |
| PARAM_VALUE | 0 | res->free | 953361000759627776 |
| PARAM_VALUE | 0 | res->name | 6074748754846326784,7416667579466436608 |
| PARAM_VALUE | 0 | res->node.next | 4096-ptr_max |
| PARAM_VALUE | 0 | res->should_kfree | 1 |
| BUF_SIZE | 0 | res | (-1),56 |
| BUF_SIZE | 0 | res | (-1),56 |
| DATA_SOURCE | 0 | res | r kunit_alloc_and_get_resource |
| RX_PATH | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | global &kunit_run_lock |
lib/kunit/kunit-test.c kunit_add_named_resource() -> kunit_put_resource()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | res | 4096-ptr_max |
| DATA_SOURCE | 0 | res | r kunit_find_named_resource |
| NOCHECK_CALL |
lib/kunit/kunit-test.c kunit_resource_test_alloc_resource() -> kunit_put_resource()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | res | 4096-ptr_max |
| PARAM_VALUE | 0 | res->data | 1-u64max |
| PARAM_VALUE | 0 | res->free | 4520060529908985856 |
| PARAM_VALUE | 0 | res->name | 6074748754846326784,7416667579466436608 |
| PARAM_VALUE | 0 | res->node.next | 4096-ptr_max |
| PARAM_VALUE | 0 | res->should_kfree | 1 |
| BUF_SIZE | 0 | res | 56 |
| CAPPED_DATA | 0 | res->node.next | 1 |
| DATA_SOURCE | 0 | res | r kunit_alloc_and_get_resource |
| NOCHECK_CALL |
lib/kunit/kunit-test.c kunit_resource_test_cleanup_resources() -> kunit_put_resource()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | res | 0,4096-ptr_max |
| NOCHECK_CALL |
lib/kunit/kunit-test.c kunit_resource_test_destroy_resource() -> kunit_put_resource()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | res | 0,4096-ptr_max |
| PARAM_VALUE | 0 | res->data | 1-u64max |
| PARAM_VALUE | 0 | res->free | 4520060529908985856 |
| PARAM_VALUE | 0 | res->name | 6074748754846326784,7416667579466436608 |
| PARAM_VALUE | 0 | res->node.next | 4096-ptr_max |
| PARAM_VALUE | 0 | res->should_kfree | 1 |
| BUF_SIZE | 0 | res | (-1),56 |
| BUF_SIZE | 0 | res | (-1),56 |
| DATA_SOURCE | 0 | res | r kunit_alloc_and_get_resource |
| NOCHECK_CALL |
lib/kunit/kunit-test.c kunit_resource_test_named() -> kunit_put_resource()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | res | 8203936689950793728 |
| NOCHECK_CALL |
lib/kunit/kunit-test.c kunit_resource_test_proper_free_ordering() -> kunit_put_resource()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | res | 0,4096-ptr_max |
| PARAM_VALUE | 0 | res->data | 1-u64max |
| PARAM_VALUE | 0 | res->free | 5603544125522128896 |
| PARAM_VALUE | 0 | res->name | 6074748754846326784,7416667579466436608 |
| PARAM_VALUE | 0 | res->node.next | 4096-ptr_max |
| PARAM_VALUE | 0 | res->should_kfree | 1 |
| BUF_SIZE | 0 | res | (-1),56 |
| BUF_SIZE | 0 | res | (-1),56 |
| DATA_SOURCE | 0 | res | r kunit_alloc_and_get_resource |
| NOCHECK_CALL |
lib/kunit/kunit-test.c kunit_resource_test_remove_resource() -> kunit_put_resource()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | res | 4096-ptr_max |
| PARAM_VALUE | 0 | res->data | 1-u64max |
| PARAM_VALUE | 0 | res->free | 4520060529908985856 |
| PARAM_VALUE | 0 | res->name | 6074748754846326784,7416667579466436608 |
| PARAM_VALUE | 0 | res->node.next->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | res->should_kfree | 1 |
| BUF_SIZE | 0 | res | (-1),56 |
| BUF_SIZE | 0 | res | (-1),56 |
| DATA_SOURCE | 0 | res | r kunit_alloc_and_get_resource |
| NOCHECK_CALL |