Defined in 1 files as a prototype:

Defined in 2 files as a function:

Referenced in 2 files:

Smatch caller information:

kernel/printk/nbcon.c nbcon_emit_next_record() -> nbcon_write_context_set_buf()

Type Parameter Key Value
PARAM_VALUE 0 wctxt 724933713938776064,1760537648933195776,2012200170693144576
PARAM_VALUE 0 wctxt->ctxt.console 4096-ptr_max
PARAM_VALUE 1 buf 4096-ptr_max
PARAM_VALUE 2 len 1-u32max
BUF_SIZE 1 buf 2048
DATA_SOURCE 0 wctxt $0
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 2 len unit_byte
HALF_LOCKED2 _T->flags
HALF_LOCKED2 flags

kernel/printk/nbcon.c nbcon_enter_unsafe() -> nbcon_write_context_set_buf()

Type Parameter Key Value
PARAM_VALUE 0 wctxt->ctxt.console 4096-ptr_max
PARAM_VALUE 1 buf 0
PARAM_VALUE 2 len 0
BUF_SIZE 0 wctxt->ctxt.console (-1),128
DATA_SOURCE 0 wctxt $0
STR_LEN 0 wctxt->outbuf (-1)
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL

kernel/printk/nbcon.c nbcon_exit_unsafe() -> nbcon_write_context_set_buf()

Type Parameter Key Value
PARAM_VALUE 0 wctxt 4096-ptr_max
PARAM_VALUE 0 wctxt->ctxt.console 4096-ptr_max
PARAM_VALUE 1 buf 0
PARAM_VALUE 2 len 0
BUF_SIZE 0 wctxt->ctxt.console (-1),128
DATA_SOURCE 0 wctxt $0
STR_LEN 0 wctxt->outbuf (-1)
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL

kernel/printk/nbcon.c nbcon_reacquire_nobuf() -> nbcon_write_context_set_buf()

Type Parameter Key Value
PARAM_VALUE 0 wctxt 4096-ptr_max
PARAM_VALUE 0 wctxt->len 0
PARAM_VALUE 0 wctxt->outbuf 0
PARAM_VALUE 1 buf 0
PARAM_VALUE 2 len 0
BUF_SIZE 0 wctxt->ctxt.console (-1),128
DATA_SOURCE 0 wctxt $0
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL

kernel/debug/kdb/kdb_io.c kdb_msg_write() -> nbcon_write_context_set_buf()

Type Parameter Key Value
PARAM_VALUE 0 wctxt 8778102393939857408
PARAM_VALUE 0 wctxt->ctxt.console 0
PARAM_VALUE 0 wctxt->len 0
PARAM_VALUE 0 wctxt->outbuf 0
PARAM_VALUE 0 wctxt->unsafe_takeover 0
PARAM_VALUE 1 buf 1-u64max
PARAM_VALUE 2 len 1-1010101,4294967292-u32max
BUF_SIZE 1 buf (-1),1,7,256
BUF_SIZE 1 buf (-1),1,7,256
DATA_SOURCE 1 buf $0
DATA_SOURCE 2 len $1
STR_LEN 0 wctxt (-1),6
STR_LEN 1 buf (-1),6
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 flags