Defined in 1 files as a prototype:
Defined in 2 files as a function:
- lib/vsprintf.c, line 393 (as a function)
- tools/testing/selftests/size/get_size.c, line 45 (as a function)
Referenced in 3 files:
Smatch caller information:
fs/seq_file.c seq_put_decimal_ll() -> num_to_str()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buf | 4096-ptr_max |
| PARAM_VALUE | 2 | num | 10-9223372036854775807 |
| PARAM_VALUE | 3 | width | 0 |
| DATA_SOURCE | 2 | num | $2 [m] |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | buf | unit_byte |
| UNITS | 1 | size | unit_byte |
| UNITS | 2 | num | unit_jiffy |
| LOCK2 | &m->lock | ||
| HALF_LOCKED2 | &task->signal->exec_update_lock | ||
| TYPE_LOCK | (struct seq_file)->lock |
fs/seq_file.c seq_put_decimal_ull_width() -> num_to_str()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buf | 4096-ptr_max |
| PARAM_VALUE | 3 | width | 1-u32max |
| DATA_SOURCE | 2 | num | $2 |
| DATA_SOURCE | 3 | width | $3 [m] |
| FUZZY_MAX | 3 | width | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | buf | unit_byte |
| UNITS | 1 | size | unit_byte |
| UNITS | 2 | num | unit_array_size |
| UNITS | 3 | width | unit_byte |
| LOCK2 | &m->lock | ||
| HALF_LOCKED2 | &priv->lock_ctx.mm->mmap_lock | ||
| HALF_LOCKED2 | rcu_read | ||
| TYPE_LOCK | (struct seq_file)->lock |
drivers/of/unittest.c of_unittest_printf() -> num_to_str()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buf | 3388506674893512704 |
| PARAM_VALUE | 1 | size | 16 |
| PARAM_VALUE | 3 | width | 0 |
| BUF_SIZE | 0 | buf | 16 |
| STR_LEN | 0 | buf | 0 |
| TERMINATED | 0 | buf | 1 |
| NOCHECK_CALL | |||
| UNITS | 1 | size | unit_byte |