函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:mip_printk() - Print a rate-limited message*@regs: Register set with the context in which the warning is printed*@log_level: Kernel log level to print the message*@fmt: The text string to print* Print the text contained in @fmt

函数原型:static __printf(3, 4) void umip_printk(const struct pt_regs *regs, const char *log_level, const char *fmt, ...)

返回类型:void

参数:

类型参数名称
const struct pt_regs *regs
const char *log_level
const char *fmt
119  DEFINE_RATELIMIT_STATE(ratelimit, 2 * 60 * HZ, 5)
120  tsk等于当前进程
124  如果非__ratelimit( & ratelimit)则返回
127  va_start(args, fmt)
128  fmt等于fmt
129  va等于args
130  printk("%s"pr_fmt("%s[%d] ip:%lx sp:%lx: %pV"), log_level, 是否使用FPU, task_pid_nr(tsk), Return frame for iretq , sp, & vaf)
132  va_end(args)