函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\printk\printk.c Create Date:2022-07-27 11:06:50
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:vprintk_emit

函数原型:asmlinkage int vprintk_emit(int facility, int level, const char *dict, size_t dictlen, const char *fmt, va_list args)

返回类型:int

参数:

类型参数名称
intfacility
intlevel
const char *dict
size_tdictlen
const char *fmt
va_listargs
1959  in_sched等于TSC's on different sockets may be reset asynchronously.* This may cause the TSC ADJUST value on socket 0 to be NOT 0.
1964  如果此条件成立可能性小(为编译器优化)(System may need to suppress printk message under certain* circumstances, like after kernel panic happens.)则返回:0
1967  如果level恒等于Deferred messages from sched code* are set to this special level
1968  level等于default (or last) loglevel
1969  in_sched = true
1972  boot_delay_msec(level)
1973  printk_delay()
1976  logbuf_lock_irqsave(flags)
1977  curr_log_seq等于dex and sequence number of the next record to store in the buffer
1978  printed_len等于Must be called under logbuf_lock.
1979  pending_output等于curr_log_seq不等于dex and sequence number of the next record to store in the buffer
1980  logbuf_unlock_irqrestore(flags)
1983  如果非in_schedpending_output
1989  禁止抢占()
1995  如果sole_trylock_spinning - try to get console_lock by busy waiting* This allows to busy wait for the console_lock when the current* owner is running in specially marked sections. It means that* the current owner is running and cannot reschedule until itsole_unlock - unlock the console system* Releases the console_lock which the caller holds on the console system* and the console driver list.* While the console_lock was held, console output may have been buffered* by printk()
1997  禁用抢占和中断()
2000  如果pending_outputwake_up_klogd()
2002  返回:printed_len
调用者
名称描述
devkmsg_emit
vprintk_default
vprintk_deferred