Function report | 
Source Code:kernel\printk\printk_safe.c | 
Create Date:2022-07-28 10:07:42 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:Flush data from the associated per-CPU buffer. The function* can be called either via IRQ work or independently.
Proto:static void __printk_safe_flush(struct irq_work *work)
Type:void
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| 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 | If atomic_cmpxchg( & length of written data , len, 0) != len Then Go to more | 
| 232 | out : | 
| 233 | report_message_lost(s) | 
| 234 | raw_spin_unlock_irqrestore( & read_lock, flags) | 
| Name | Describe | 
|---|---|
| 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. | 
| Source code conversion tool public plug-in interface  | X | 
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion  |