Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 3 files:
- kernel/printk/printk.c
- kernel/printk/printk_ringbuffer.c, line 1746
- kernel/printk/printk_ringbuffer_kunit_test.c, line 146
Smatch caller information:
kernel/printk/printk_ringbuffer_kunit_test.c prbtest_writer() -> prb_reserve()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | e | 3740501826149662720 |
| PARAM_VALUE | 0 | e->id | 0-4611686018427387903 |
| PARAM_VALUE | 2 | r | 3821338168109666304 |
| PARAM_VALUE | 2 | r->info | 0 |
| PARAM_VALUE | 2 | r->text_buf | 0 |
| PARAM_VALUE | 2 | r->text_buf_size | 6-132 |
kernel/printk/printk.c add_to_rb() -> prb_reserve()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | e | 6416126440708575232 |
| PARAM_VALUE | 1 | rb | 8822653311116238848 |
| PARAM_VALUE | 1 | rb->desc_ring.count_bits | 0-31 |
| PARAM_VALUE | 1 | rb->desc_ring.descs | 4096-ptr_max |
| PARAM_VALUE | 1 | rb->desc_ring.infos | 4096-ptr_max |
| PARAM_VALUE | 1 | rb->text_data_ring.data | 1-u64max |
| PARAM_VALUE | 1 | rb->text_data_ring.size_bits | 0-31 |
| PARAM_VALUE | 2 | r | 670634183677255680 |
| PARAM_VALUE | 2 | r->info | 0 |
| PARAM_VALUE | 2 | r->text_buf | 0 |
| PARAM_VALUE | 2 | r->text_buf_size | 0-u16max |
| DATA_SOURCE | 1 | rb | $0 |
| LOCK2 | irq | ||
| HALF_LOCKED2 | flags |
kernel/printk/printk.c vprintk_store() -> prb_reserve()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | e | 688430507600154624 |
| PARAM_VALUE | 0 | e->id | 0-4611686018427387903 |
| PARAM_VALUE | 2 | r | 368491748060639232 |
| PARAM_VALUE | 2 | r->info | 0 |
| PARAM_VALUE | 2 | r->text_buf | 0 |
| PARAM_VALUE | 2 | r->text_buf_size | 0-1024 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | irqflags |
kernel/printk/printk.c vprintk_store() -> prb_reserve()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | e | 688430507600154624 |
| PARAM_VALUE | 0 | e->id | 0-4611686018427387903 |
| PARAM_VALUE | 0 | e->rb | 4096-ptr_max |
| PARAM_VALUE | 1 | rb->desc_ring.count_bits | 0-31 |
| PARAM_VALUE | 2 | r | 368491748060639232 |
| PARAM_VALUE | 2 | r->info | 0 |
| PARAM_VALUE | 2 | r->text_buf | 0 |
| PARAM_VALUE | 2 | r->text_buf_size | 0-1035 |
| MEM_ZERO | 2 | r | |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | irqflags |