函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\panic.c Create Date:2022-07-27 09:59:20
Last Modify:2022-05-22 10:57:01 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:__warn

函数原型:void __warn(const char *file, int line, void *caller, unsigned taint, struct pt_regs *regs, struct warn_args *args)

返回类型:void

参数:

类型参数名称
const char *file
intline
void *caller
unsignedtaint
struct pt_regs *regs
struct warn_args *args
561  disable_trace_on_warning()
563  如果file打印警告信息("WARNING: CPU: %d PID: %d at %s:%d %pS\n", These macros fold the SMP functionality into a single CPU system(), pid, file, line, caller)
567  否则打印警告信息("WARNING: CPU: %d PID: %d at %pS\n", These macros fold the SMP functionality into a single CPU system(), pid, caller)
571  如果argsvprintk(fmt, args)
574  如果panic_on_warn
581  panic_on_warn等于0
582  panic - halt the system*@fmt: The text string to print* Display a message, then perform cleanups.* This function never returns.
585  print_modules()
587  如果regsshow_regs(regs)
589  否则dump_stack()
592  print_irqtrace_events(当前进程)
594  print_oops_end_marker()
597  add_taint: add a taint flag if not already set.*@flag: one of the TAINT_* constants.*@lockdep_ok: whether lock debugging is still OK.* If something bad has gone wrong, you'll want @lockdebug_ok = false, but for
调用者
名称描述
report_bug