Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\printk\printk.c Create Date:2022-07-28 10:06:43
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:vprintk_emit

Proto:asmlinkage int vprintk_emit(int facility, int level, const char *dict, size_t dictlen, const char *fmt, va_list args)

Type:int

Parameter:

TypeParameterName
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  If Value for the false possibility is greater at compile time(System may need to suppress printk message under certain* circumstances, like after kernel panic happens.) Then Return 0
1967  If level == Deferred messages from sched code* are set to this special level Then
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  If Not in_sched && pending_output Then
1989  Even if we don't have any preemption, we need preempt disable/enable* to be barriers, so that we don't have things like get_user/put_user* that can cause faults and scheduling migrate into our preempt-protected* region.()
1995  If 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 it Then sole_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  preempt_enable()
2000  If pending_output Then wake_up_klogd()
2002  Return printed_len
Caller
NameDescribe
devkmsg_emit
vprintk_default
vprintk_deferred