Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 79 files:

Smatch caller information:

drivers/char/ttyprintk.c ttyprintk_init() -> register_console()

Type Parameter Key Value
PARAM_VALUE 0 newcon 1473618774229225472
NOCHECK_CALL

drivers/tty/serial/altera_uart.c altera_uart_console_init() -> register_console()

Type Parameter Key Value
PARAM_VALUE 0 newcon 6742363173231161344
NOCHECK_CALL

drivers/tty/serial/tegra-tcu.c tegra_tcu_probe() -> register_console()

Type Parameter Key Value
PARAM_VALUE 0 newcon 4096-ptr_max
PARAM_VALUE 0 newcon->data 4096-ptr_max
PARAM_VALUE 0 newcon->device 6569512524207788032
PARAM_VALUE 0 newcon->flags 17
PARAM_VALUE 0 newcon->index (-1)
PARAM_VALUE 0 newcon->setup 5221623383815946240
PARAM_VALUE 0 newcon->write 2460115417356075008
MEM_ZERO 0 newcon
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL

drivers/tty/serial/serial_core.c console_store() -> register_console()

Type Parameter Key Value
PARAM_VALUE 0 newcon 4096-ptr_max
CAPPED_DATA 0 newcon->index 1
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &of->mutex
LOCK2 _T->lock
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex

drivers/tty/serial/serial_core.c uart_configure_port() -> register_console()

Type Parameter Key Value
PARAM_VALUE 0 newcon 4096-ptr_max
PARAM_VALUE 0 newcon->index s16min-(-2),0-s16max
PARAM_VALUE 0 newcon->node.pprev 1-u64max
CAPPED_DATA 0 newcon->index 1
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &_T->lock->lock
LOCK2 _T->flags
LOCK2 _T->lock
HALF_LOCKED2 global &max3100s_lock

drivers/tty/serial/lantiq.c lqasc_console_init() -> register_console()

Type Parameter Key Value
PARAM_VALUE 0 newcon 7526056861653110784
NOCHECK_CALL

drivers/tty/serial/milbeaut_usio.c mlb_usio_console_init() -> register_console()

Type Parameter Key Value
PARAM_VALUE 0 newcon 260238612883087360
NOCHECK_CALL

kernel/debug/debug_core.c kgdb_register_callbacks() -> register_console()

Type Parameter Key Value
PARAM_VALUE 0 newcon 7139224227058356224
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 global &console_mutex

kernel/debug/debug_core.c opt_kgdb_con() -> register_console()

Type Parameter Key Value
PARAM_VALUE 0 newcon 7139224227058356224
NOCHECK_CALL
HALF_LOCKED2 irq

drivers/gpu/drm/clients/drm_log.c drm_log_register_console() -> register_console()

Type Parameter Key Value
PARAM_VALUE 0 newcon 4096-ptr_max
PARAM_VALUE 0 newcon->device_lock 7345038755365040128
PARAM_VALUE 0 newcon->device_unlock 3699770478914818048
PARAM_VALUE 0 newcon->flags 257
PARAM_VALUE 0 newcon->index (-1)
PARAM_VALUE 0 newcon->write_thread 4190331253065445376
DATA_SOURCE 0 newcon $0
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 global &component_mutex

drivers/tty/goldfish.c goldfish_tty_probe() -> register_console()

Type Parameter Key Value
PARAM_VALUE 0 newcon 4096-ptr_max
PARAM_VALUE 0 newcon->device 6158562987722416128
PARAM_VALUE 0 newcon->flags 1
PARAM_VALUE 0 newcon->index 0-7
PARAM_VALUE 0 newcon->setup 245334789678039040
PARAM_VALUE 0 newcon->write 7044759265697288192
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HOST_DATA 0 newcon->cflag s32min-s32max
HOST_DATA 0 newcon->dropped 0-u64max
HOST_DATA 0 newcon->irq_work.node.a_flags.counter s32min-s32max
HOST_DATA 0 newcon->irq_work.node.dst 0-u16max
HOST_DATA 0 newcon->irq_work.node.src 0-u16max
HOST_DATA 0 newcon->irq_work.node.u_flags 0-u32max
HOST_DATA 0 newcon->ispeed 0-u32max
HOST_DATA 0 newcon->nbcon_device_ctxt.allow_unsafe_takeover 0-1
HOST_DATA 0 newcon->nbcon_device_ctxt.backlog 0-1
HOST_DATA 0 newcon->nbcon_device_ctxt.prio 0-u32max
HOST_DATA 0 newcon->nbcon_device_ctxt.seq 0-u64max
HOST_DATA 0 newcon->nbcon_device_ctxt.spinwait_max_us 0-u32max
HOST_DATA 0 newcon->nbcon_prev_seq.counter s64min-s64max
HOST_DATA 0 newcon->nbcon_seq.counter s64min-s64max
HOST_DATA 0 newcon->nbcon_state.counter s32min-s32max
HOST_DATA 0 newcon->ospeed 0-u32max
HOST_DATA 0 newcon->seq 0-u64max
LOCK2 global &goldfish_tty_lock

drivers/net/netconsole.c enabled_store() -> register_console()

Type Parameter Key Value
PARAM_VALUE 0 newcon 1009270431607222272
PARAM_VALUE 0 newcon->node.pprev 0
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &buffer->mutex
LOCK2 &frag->frag_sem
LOCK2 global &dynamic_netconsole_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct configfs_buffer)->mutex
TYPE_LOCK (struct configfs_fragment)->frag_sem

drivers/net/netconsole.c enabled_store() -> register_console()

Type Parameter Key Value
PARAM_VALUE 0 newcon 8222776370724024320
PARAM_VALUE 0 newcon->node.pprev 0
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &buffer->mutex
LOCK2 &frag->frag_sem
LOCK2 global &dynamic_netconsole_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct configfs_buffer)->mutex
TYPE_LOCK (struct configfs_fragment)->frag_sem

drivers/net/netconsole.c init_netconsole() -> register_console()

Type Parameter Key Value
PARAM_VALUE 0 newcon 1009270431607222272
NOCHECK_CALL

drivers/net/netconsole.c init_netconsole() -> register_console()

Type Parameter Key Value
PARAM_VALUE 0 newcon 8222776370724024320
NOCHECK_CALL

drivers/tty/hvc/hvc_console.c hvc_check_console() -> register_console()

Type Parameter Key Value
PARAM_VALUE 0 newcon 8593895625506955264
PARAM_VALUE 0 newcon->node.pprev 0
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL

drivers/tty/hvc/hvc_console.c hvc_console_init() -> register_console()

Type Parameter Key Value
PARAM_VALUE 0 newcon 8593895625506955264
NOCHECK_CALL

arch/x86/kernel/early_printk.c early_console_register() -> register_console()

Type Parameter Key Value
PARAM_VALUE 0 newcon 873495751481122816,2379198977559855104,3656934893564989440,3888182803055091712
PARAM_VALUE 0 newcon->dropped 0
PARAM_VALUE 0 newcon->index (-1)
PARAM_VALUE 0 newcon->nbcon_prev_seq.counter (-1)-0
PARAM_VALUE 0 newcon->nbcon_state.counter 0
PARAM_VALUE 0 newcon->pbufs 0,4096-ptr_max
PARAM_VALUE 0 newcon->rcuwait.task 0
DATA_SOURCE 0 newcon $0
NOCHECK_CALL
HALF_LOCKED2 irq

drivers/tty/serial/sprd_serial.c sprd_serial_console_init() -> register_console()

Type Parameter Key Value
PARAM_VALUE 0 newcon 2654141632982966272
NOCHECK_CALL

drivers/tty/serial/liteuart.c liteuart_console_init() -> register_console()

Type Parameter Key Value
PARAM_VALUE 0 newcon 3214949710478790656
NOCHECK_CALL

drivers/tty/serial/altera_jtaguart.c altera_jtaguart_console_init() -> register_console()

Type Parameter Key Value
PARAM_VALUE 0 newcon 1641892357075087360
NOCHECK_CALL

drivers/char/lp.c lp_register() -> register_console()

Type Parameter Key Value
PARAM_VALUE 0 newcon 218173808381165568
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 global &core_lock
HALF_LOCKED2 global &registration_lock

drivers/tty/vt/vt.c con_init() -> register_console()

Type Parameter Key Value
PARAM_VALUE 0 newcon 807836608815349760
NOCHECK_CALL

drivers/tty/serial/lpc32xx_hs.c lpc32xx_hsuart_console_init() -> register_console()

Type Parameter Key Value
PARAM_VALUE 0 newcon 376562069156499456
NOCHECK_CALL

drivers/hwtracing/stm/console.c stm_console_link() -> register_console()

Type Parameter Key Value
PARAM_VALUE 0 newcon 4096-ptr_max
PARAM_VALUE 0 newcon->flags 5
PARAM_VALUE 0 newcon->write 7003171543243034624
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex

drivers/tty/serial/ma35d1_serial.c ma35d1serial_console_init() -> register_console()

Type Parameter Key Value
PARAM_VALUE 0 newcon 4234640873253421056
NOCHECK_CALL

drivers/usb/early/xhci-dbc.c early_xdbc_register_console() -> register_console()

Type Parameter Key Value
PARAM_VALUE 0 newcon 835688933731860480
BUF_SIZE 0 newcon 280
NOCHECK_CALL
LOCK2 irq

drivers/tty/serial/mvebu-uart.c mvebu_uart_console_init() -> register_console()

Type Parameter Key Value
PARAM_VALUE 0 newcon 2279407851964186624
NOCHECK_CALL

drivers/tty/serial/sifive.c sifive_console_init() -> register_console()

Type Parameter Key Value
PARAM_VALUE 0 newcon 1082215056480006144
NOCHECK_CALL

drivers/usb/serial/console.c usb_serial_console_init() -> register_console()

Type Parameter Key Value
PARAM_VALUE 0 newcon 5397695064897404928
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL

drivers/tty/serial/bcm63xx_uart.c bcm63xx_console_init() -> register_console()

Type Parameter Key Value
PARAM_VALUE 0 newcon 2353565849452355584
NOCHECK_CALL

drivers/tty/serial/rda-uart.c rda_uart_console_init() -> register_console()

Type Parameter Key Value
PARAM_VALUE 0 newcon 4709540981783543808
NOCHECK_CALL

drivers/tty/ttynull.c ttynull_init() -> register_console()

Type Parameter Key Value
PARAM_VALUE 0 newcon 6339287319838101504
NOCHECK_CALL

drivers/tty/serial/owl-uart.c owl_uart_console_init() -> register_console()

Type Parameter Key Value
PARAM_VALUE 0 newcon 2594845968240852992
NOCHECK_CALL

drivers/usb/gadget/function/u_serial.c gs_console_init() -> register_console()

Type Parameter Key Value
PARAM_VALUE 0 newcon 4096-ptr_max
PARAM_VALUE 0 newcon->device 7920673304233934848
PARAM_VALUE 0 newcon->flags 1
PARAM_VALUE 0 newcon->index 0-255
PARAM_VALUE 0 newcon->write 1258504378026237952
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 &buffer->mutex
HALF_LOCKED2 &frag->frag_sem

drivers/tty/serial/samsung_tty.c s3c24xx_serial_register_console() -> register_console()

Type Parameter Key Value
PARAM_VALUE 0 newcon 145175288851701760
NOCHECK_CALL

drivers/tty/serial/pic32_uart.c pic32_console_init() -> register_console()

Type Parameter Key Value
PARAM_VALUE 0 newcon 7923694253000921088
NOCHECK_CALL

drivers/tty/serial/pic32_uart.c pic32_late_console_init() -> register_console()

Type Parameter Key Value
PARAM_VALUE 0 newcon 7923694253000921088
PARAM_VALUE 0 newcon->node.pprev 0
NOCHECK_CALL

drivers/tty/serial/8250/8250_core.c univ8250_console_init() -> register_console()

Type Parameter Key Value
PARAM_VALUE 0 newcon 5109488043324854272
NOCHECK_CALL

drivers/tty/serial/tegra-utc.c tegra_utc_register_port() -> register_console()

Type Parameter Key Value
PARAM_VALUE 0 newcon 4096-ptr_max
PARAM_VALUE 0 newcon->data 1508577376554360832
PARAM_VALUE 0 newcon->device 6569512524207788032
PARAM_VALUE 0 newcon->device_lock 7563894245996863488
PARAM_VALUE 0 newcon->device_unlock 6815119673315471360
PARAM_VALUE 0 newcon->flags 257
PARAM_VALUE 0 newcon->setup 1265427470423732224
PARAM_VALUE 0 newcon->write_atomic 3173378268463415296
PARAM_VALUE 0 newcon->write_thread 5894852092188332032
MEM_ZERO 0 newcon
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL

drivers/tty/serial/earlycon.c of_setup_earlycon() -> register_console()

Type Parameter Key Value
PARAM_VALUE 0 newcon 4096-ptr_max
PARAM_VALUE 0 newcon->data 4360160625620111360
PARAM_VALUE 0 newcon->write 1-u64max
NOCHECK_CALL
USER_DATA 0 newcon->index s16min-s16max

drivers/tty/serial/earlycon.c register_earlycon() -> register_console()

Type Parameter Key Value
PARAM_VALUE 0 newcon 4096-ptr_max
PARAM_VALUE 0 newcon->data 4360160625620111360
PARAM_VALUE 0 newcon->write 1-u64max
NOCHECK_CALL
USER_DATA 0 newcon->index s16min-s16max
HALF_LOCKED2 irq

fs/pstore/platform.c pstore_register_console() -> register_console()

Type Parameter Key Value
PARAM_VALUE 0 newcon 9220070925972398080
PARAM_VALUE 0 newcon->flags 21
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 global &psinfo_lock
HALF_LOCKED2 &cxt->pstore_zone_info_lock
HALF_LOCKED2 global &pstore_blk_lock