函数逻辑报告 |
Source Code:kernel\printk\printk_safe.c |
Create Date:2022-07-27 11:07:44 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:Add a message to per-CPU context-dependent buffer
函数原型:static __printf(2, 0) int printk_safe_log_store(struct printk_safe_seq_buf *s, const char *fmt, va_list args)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct printk_safe_seq_buf * | s | |
| const char * | fmt | |
| va_list | args |
| 75 | again : |
| 76 | len等于atomic_read( & length of written data ) |
| 95 | 如果非add则返回:0 |
| 103 | 如果atomic_cmpxchg( & length of written data , len, len + add)不等于len则转到:again |
| 107 | 返回:add |
| 名称 | 描述 |
|---|---|
| vprintk_safe | Lock-less printk(), to avoid deadlocks should the printk() recurse* into itself. It uses a per-CPU buffer to store the message, just like* NMI. |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |