Documented in 1 files:

Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

mm/slub.c kunit_find_resource() -> kunit_get_resource()

Type Parameter Key Value
PARAM_VALUE 0 res 4096-ptr_max
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &test->lock
LOCK2 flags
HALF_LOCKED2 global &slab_mutex
TYPE_LOCK (struct kunit)->lock

lib/kunit/static_stub.c kunit_find_resource() -> kunit_get_resource()

Type Parameter Key Value
PARAM_VALUE 0 res 4096-ptr_max
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &test->lock
LOCK2 flags
TYPE_LOCK (struct kunit)->lock

lib/kunit/platform.c kunit_find_resource() -> kunit_get_resource()

Type Parameter Key Value
PARAM_VALUE 0 res 4096-ptr_max
PREEMPT_ADD <- disables preempt
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &test->lock
LOCK2 flags
TYPE_LOCK (struct kunit)->lock

lib/tests/slub_kunit.c kunit_find_resource() -> kunit_get_resource()

Type Parameter Key Value
PARAM_VALUE 0 res 4096-ptr_max
PREEMPT_ADD <- disables preempt
NOCHECK_CALL
LOCK2 &test->lock
LOCK2 flags
TYPE_LOCK (struct kunit)->lock

lib/kunit/kunit-example-test.c kunit_find_resource() -> kunit_get_resource()

Type Parameter Key Value
PARAM_VALUE 0 res 4096-ptr_max
PREEMPT_ADD <- disables preempt
NOCHECK_CALL
LOCK2 &test->lock
LOCK2 flags
TYPE_LOCK (struct kunit)->lock

lib/kunit/resource.c kunit_find_resource() -> kunit_get_resource()

Type Parameter Key Value
PARAM_VALUE 0 res 4096-ptr_max
PREEMPT_ADD <- disables preempt
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &test->lock
LOCK2 flags
TYPE_LOCK (struct kunit)->lock

lib/tests/fortify_kunit.c kunit_find_resource() -> kunit_get_resource()

Type Parameter Key Value
PARAM_VALUE 0 res 4096-ptr_max
PREEMPT_ADD <- disables preempt
NOCHECK_CALL
LOCK2 &test->lock
LOCK2 flags
TYPE_LOCK (struct kunit)->lock

lib/kunit/kunit-test.c kunit_alloc_and_get_resource() -> kunit_get_resource()

Type Parameter Key Value
PARAM_VALUE 0 res 4096-ptr_max
PARAM_VALUE 0 res->data 1-u64max
PARAM_VALUE 0 res->name 6074748754846326784,7416667579466436608
PARAM_VALUE 0 res->node.next 4096-ptr_max
PARAM_VALUE 0 res->refcount.refcount.refs.counter 1
PARAM_VALUE 0 res->should_kfree 1
BUF_SIZE 0 res 56
DATA_SOURCE 0 res r _kzalloc_noprof
RX_PATH
NOCHECK_CALL

lib/kunit/kunit-test.c kunit_find_resource() -> kunit_get_resource()

Type Parameter Key Value
PARAM_VALUE 0 res 4096-ptr_max
PREEMPT_ADD <- disables preempt
NOCHECK_CALL
LOCK2 &test->lock
LOCK2 flags
TYPE_LOCK (struct kunit)->lock