函数逻辑报告 |
Source Code:kernel\printk\printk.c |
Create Date:2022-07-27 11:07:32 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:kmsg_dump - dump kernel log to kernel message dumpers.*@reason: the reason (oops, panic etc) for dumping* Call each of the registered dumper's dump() callback, which can* retrieve the kmsg records with kmsg_dump_get_line() or* kmsg_dump_get_buffer().
函数原型:void kmsg_dump(enum kmsg_dump_reason reason)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
enum kmsg_dump_reason | reason |
3117 | 如果reason大于KMSG_DUMP_OOPS且非always_kmsg_dump则返回 |
3122 | 如果max_reason且reason大于max_reason则继续下一循环 |
3126 | active = true |
3128 | logbuf_lock_irqsave(flags) |
3132 | next_idx等于log_next_idx |
3139 | active = false |
名称 | 描述 |
---|---|
oops_exit | Called when the architecture exits its oops handler, after printing* everything. |
emergency_restart | mergency_restart - reboot the system* Without shutting down any hardware or taking any locks* reboot the system. This is called when we know we are in* trouble so this is our best effort to reboot. This is* safe to call in interrupt context. |
kernel_restart | kernel_restart - reboot the system*@cmd: pointer to buffer containing command to execute for restart* or %NULL* Shutdown everything and perform a clean reboot.* This is not safe to call in interrupt context. |
kernel_halt | kernel_halt - halt the system* Shutdown everything and perform a clean system halt. |
kernel_power_off | kernel_power_off - power_off the system* Shutdown everything and perform a clean system power_off. |
panic | panic - halt the system*@fmt: The text string to print* Display a message, then perform cleanups.* This function never returns. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |