Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 9 files:

Smatch caller information:

drivers/firmware/efi/libstub/efi-stub-helper.c efi_parse_options() -> next_arg()

Type Parameter Key Value
PARAM_VALUE 0 args 4096-ptr_max
PARAM_VALUE 0 *args (-128)-(-1),1-127
PARAM_VALUE 1 param 7208336949730373632
PARAM_VALUE 2 val 5085279109606506496
BUF_SIZE 0 args s32min-s32max

drivers/block/zram/zram_drv.c algorithm_params_store() -> next_arg()

Type Parameter Key Value
PARAM_VALUE 0 args 4096-ptr_max
PARAM_VALUE 0 *args 1-255
PARAM_VALUE 1 param 549039780315979776
PARAM_VALUE 2 val 4441744274238152704
BUF_SIZE 0 args s32min-s32max
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/block/zram/zram_drv.c recomp_algorithm_store() -> next_arg()

Type Parameter Key Value
PARAM_VALUE 0 args 4096-ptr_max
PARAM_VALUE 0 *args 1-255
PARAM_VALUE 1 param 4181753103030067200
PARAM_VALUE 2 val 2579619231978823680
BUF_SIZE 0 args s32min-s32max
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/block/zram/zram_drv.c recompress_store() -> next_arg()

Type Parameter Key Value
PARAM_VALUE 0 args 4096-ptr_max
PARAM_VALUE 0 *args 1-255
PARAM_VALUE 1 param 3746610109858971648
PARAM_VALUE 2 val 2030620420762030080
BUF_SIZE 0 args s32min-s32max
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/block/zram/zram_drv.c writeback_store() -> next_arg()

Type Parameter Key Value
PARAM_VALUE 0 args 4096-ptr_max
PARAM_VALUE 0 *args 1-255
PARAM_VALUE 1 param 3057466830016876544
PARAM_VALUE 2 val 8716010072794722304
BUF_SIZE 0 args s32min-s32max
RX_PATH
TASK_NOT_RUNNING
LOCK2 &of->mutex
LOCK2 _T->lock
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex

drivers/gpio/gpio-aggregator.c gpio_aggregator_parse() -> next_arg()

Type Parameter Key Value
PARAM_VALUE 0 args 4096-ptr_max
PARAM_VALUE 1 param 2422379151679610880
PARAM_VALUE 2 val 6638201509415636992
BUF_SIZE 0 args s32min-s32max
DATA_SOURCE 0 args r skip_spaces
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/gpio/gpio-aggregator.c gpio_aggregator_parse() -> next_arg()

Type Parameter Key Value
PARAM_VALUE 0 args 4096-ptr_max
PARAM_VALUE 0 *args 1-255
PARAM_VALUE 1 param 2491072941065433088
PARAM_VALUE 2 val 6638201509415636992
BUF_SIZE 0 args s32min-s32max
RX_PATH
TASK_NOT_RUNNING
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
HALF_LOCKED2 _T->lock
TYPE_LOCK (struct kernfs_open_file)->mutex

drivers/gpio/gpio-aggregator.c gpio_aggregator_parse() -> next_arg()

Type Parameter Key Value
PARAM_VALUE 0 args 4096-ptr_max
PARAM_VALUE 1 param 2422379151679610880
PARAM_VALUE 1 *param 4096-ptr_max
PARAM_VALUE 2 val 6638201509415636992
PARAM_VALUE 2 *val 4096-ptr_max
BUF_SIZE 0 args s32min-s32max
DATA_SOURCE 0 args r next_arg
RX_PATH
TASK_NOT_RUNNING
LOCK2 &of->mutex
LOCK2 _T->lock
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex

lib/tests/cmdline_kunit.c cmdline_test_next_arg_bare_quote_regression() -> next_arg()

Type Parameter Key Value
PARAM_VALUE 0 args 3070344771144220672
PARAM_VALUE 1 param 7997490148683640832
PARAM_VALUE 2 val 5683161681639620608
BUF_SIZE 0 args 10
STR_LEN 0 args 9
TERMINATED 0 args 1

lib/tests/cmdline_kunit.c cmdline_test_next_arg_bare_quote_regression() -> next_arg()

Type Parameter Key Value
PARAM_VALUE 0 args 3070344771144220672-ptr_max
PARAM_VALUE 1 param 7997490148683640832
PARAM_VALUE 1 *param 4096-ptr_max
PARAM_VALUE 2 val 5683161681639620608
PARAM_VALUE 2 *val 4096-18446744073709547521
BUF_SIZE 0 args s32min-s32max
DATA_SOURCE 0 args r next_arg

lib/tests/cmdline_kunit.c cmdline_test_next_arg_mixed_tokens() -> next_arg()

Type Parameter Key Value
PARAM_VALUE 0 args 8253446998172053504
PARAM_VALUE 1 param 2829200045806739456
PARAM_VALUE 2 val 303327675842727936
BUF_SIZE 0 args 19
STR_LEN 0 args 18
TERMINATED 0 args 1

lib/tests/cmdline_kunit.c cmdline_test_next_arg_mixed_tokens() -> next_arg()

Type Parameter Key Value
PARAM_VALUE 0 args 8253446998172053504-ptr_max
PARAM_VALUE 1 param 2829200045806739456
PARAM_VALUE 1 *param 4096-ptr_max
PARAM_VALUE 2 val 303327675842727936
PARAM_VALUE 2 *val 4096-18446744073709547521
BUF_SIZE 0 args s32min-s32max
DATA_SOURCE 0 args r next_arg

lib/tests/cmdline_kunit.c cmdline_test_next_arg_mixed_tokens() -> next_arg()

Type Parameter Key Value
PARAM_VALUE 0 args 8253446998172053504-ptr_max
PARAM_VALUE 1 param 2829200045806739456
PARAM_VALUE 1 *param 4096-ptr_max
PARAM_VALUE 2 val 303327675842727936
PARAM_VALUE 2 *val 0,4096-18446744073709547521
BUF_SIZE 0 args s32min-s32max
DATA_SOURCE 0 args r next_arg

lib/tests/cmdline_kunit.c cmdline_test_next_arg_quoted_value() -> next_arg()

Type Parameter Key Value
PARAM_VALUE 0 args 4653455016194928640
PARAM_VALUE 1 param 4878490809737486336
PARAM_VALUE 2 val 7174918727292403712
BUF_SIZE 0 args 20
STR_LEN 0 args 19
TERMINATED 0 args 1

lib/tests/cmdline_kunit.c cmdline_test_next_arg_quoted_value() -> next_arg()

Type Parameter Key Value
PARAM_VALUE 0 args 4653455016194928640-ptr_max
PARAM_VALUE 1 param 4878490809737486336
PARAM_VALUE 1 *param 4096-ptr_max
PARAM_VALUE 2 val 7174918727292403712
PARAM_VALUE 2 *val 4096-18446744073709547521
BUF_SIZE 0 args s32min-s32max
DATA_SOURCE 0 args r next_arg

kernel/params.c parse_args() -> next_arg()

Type Parameter Key Value
PARAM_VALUE 0 args 4096-ptr_max
PARAM_VALUE 0 *args 1-255
PARAM_VALUE 1 param 3843358393850351616
PARAM_VALUE 2 val 987380322188242944
BUF_SIZE 0 args s32min-s32max
DATA_SOURCE 0 args $1 [m]
USER_DATA 0 *args 1-255
USER_PTR 0 args
HALF_LOCKED2 irq