函数逻辑报告 |
Source Code:kernel\printk\printk_safe.c |
Create Date:2022-07-27 11:07:49 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Flush data from the associated per-CPU buffer. The function* can be called either via IRQ work or independently.
函数原型:static void __printk_safe_flush(struct irq_work *work)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
struct irq_work * | work |
197 | raw_spin_lock_irqsave( & read_lock, flags) |
199 | i等于0 |
200 | more : |
201 | len等于atomic_read( & length of written data ) |
220 | smp_rmb() |
229 | 如果atomic_cmpxchg( & length of written data , len, 0)不等于len则转到:more |
232 | out : |
233 | report_message_lost(s) |
234 | raw_spin_unlock_irqrestore( & read_lock, flags) |
名称 | 描述 |
---|---|
printk_safe_flush | printk_safe_flush - flush all per-cpu nmi buffers.* The buffers are flushed automatically via IRQ work. This function* is useful only when someone wants to be sure that all buffers have* been flushed at some point. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |