Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 4 files:

Smatch caller information:

lib/kunit/assert_test.c kunit_test_assert_hexdump() -> string_stream_clear()

Type Parameter Key Value
PARAM_VALUE 0 stream 4096-ptr_max
PARAM_VALUE 0 stream->gfp 3264
PARAM_VALUE 0 stream->lock.rlock.dep_map->name 0-255
BUF_SIZE 0 stream 104
DATA_SOURCE 0 stream r kunit_alloc_string_stream
NOCHECK_CALL

lib/kunit/assert_test.c kunit_test_assert_prologue() -> string_stream_clear()

Type Parameter Key Value
PARAM_VALUE 0 stream 4096-ptr_max
PARAM_VALUE 0 stream->fragments.prev->next 4096-ptr_max
PARAM_VALUE 0 stream->fragments.prev->next->next 4096-ptr_max
PARAM_VALUE 0 stream->gfp 3264
PARAM_VALUE 0 stream->lock.rlock.dep_map->name 0-255
BUF_SIZE 0 stream 104
DATA_SOURCE 0 stream r kunit_alloc_string_stream
NOCHECK_CALL

lib/kunit/assert_test.c validate_assert() -> string_stream_clear()

Type Parameter Key Value
PARAM_VALUE 0 stream 4096-ptr_max
PARAM_VALUE 0 stream->fragments.next 4096-ptr_max
PARAM_VALUE 0 stream->fragments.next->next 4096-ptr_max
PARAM_VALUE 0 stream->fragments.prev->next 4096-ptr_max
PARAM_VALUE 0 stream->fragments.prev->prev 4096-ptr_max
PARAM_VALUE 0 stream->gfp 3264
BUF_SIZE 0 stream 104
DATA_SOURCE 0 stream $3
STR_LEN 0 stream (-1),2,8
STR_LEN 0 stream (-1),2,8
NOCHECK_CALL

lib/kunit/assert_test.c verify_assert_print_msg() -> string_stream_clear()

Type Parameter Key Value
PARAM_VALUE 0 stream 4096-ptr_max
PARAM_VALUE 0 stream->fragments.next 4096-ptr_max
PARAM_VALUE 0 stream->fragments.next->next 4096-ptr_max
PARAM_VALUE 0 stream->fragments.prev 4096-ptr_max
PARAM_VALUE 0 stream->fragments.prev->next 4096-ptr_max
PARAM_VALUE 0 stream->fragments.prev->prev 4096-ptr_max
PARAM_VALUE 0 stream->gfp 3264
BUF_SIZE 0 stream 104
DATA_SOURCE 0 stream $1
STR_LEN 0 stream (-1),4,8
STR_LEN 0 stream (-1),4,8
NOCHECK_CALL

lib/kunit/test.c kunit_init_suite() -> string_stream_clear()

Type Parameter Key Value
PARAM_VALUE 0 stream 1-u64max
NOCHECK_CALL
LOCK2 global &kunit_run_lock

lib/kunit/test.c kunit_init_test() -> string_stream_clear()

Type Parameter Key Value
PARAM_VALUE 0 stream 1-u64max
DATA_SOURCE 0 stream $2
NOCHECK_CALL
LOCK2 global &kunit_run_lock

lib/kunit/string-stream-test.c string_stream_destroy_stub() -> string_stream_clear()

Type Parameter Key Value
DATA_SOURCE 0 stream $0
NOCHECK_CALL

lib/kunit/string-stream.c string_stream_destroy() -> string_stream_clear()

Type Parameter Key Value
PARAM_VALUE 0 stream 1-ptr_max
BUF_SIZE 0 stream s32min,(-10),(-1)-s32max
BUF_SIZE 0 stream s32min,(-10),(-1)-s32max
DATA_SOURCE 0 stream $0
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 global &kunit_run_lock