函数逻辑报告 |
Source Code:fs\fs_context.c |
Create Date:2022-07-29 10:44:02 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:logfc - Log a message to a filesystem context*@fc: The filesystem context to log to.*@fmt: The format of the buffer.
函数原型:void logfc(struct fs_context *fc, const char *fmt, ...)
返回类型:void
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct fs_context * | fc | |
| const char * | fmt |
| 390 | store_failure[]等于"OOM: Can't store error string" |
| 400 | 转到:unformatted_string |
| 402 | 如果字符串比较恒等于0则 |
| 404 | 转到:unformatted_string |
| 407 | q等于Simplified asprintf. |
| 408 | copied_string : |
| 409 | 如果非q则转到:store_failure |
| 411 | freeable等于1 |
| 412 | 转到:store_string |
| 414 | unformatted_string : |
| 415 | 如果p大于等于__start_rodata且p小于__end_rodata则转到:const_string |
| 418 | 如果log且within_module_core((unsignedlong)p, Owner module for strings that don't then need freeing )则转到:const_string |
| 421 | 转到:copied_string |
| 423 | store_failure : |
| 424 | p等于store_failure |
| 425 | const_string : |
| 427 | freeable等于0 |
| 428 | store_string : |
| 429 | 如果非log则 |
| 443 | 否则 |
| 447 | index等于 Insertion index in buffer[] 按位与logsize减1 |
| 448 | BUILD_BUG_ON - break compile if a condition is true( Insertion index in buffer[] 的长度 != sizeof(u8) || Removal index in buffer[] 的长度 != sizeof(u8)) |
| 450 | 如果 Insertion index in buffer[] 减 Removal index in buffer[] 恒等于logsize则 |
| 452 | 如果 Mask of kfree'able items in buffer[] 按位与1左移index位则释放内存 |
| 454 | Removal index in buffer[] 自加 |
| 458 | Mask of kfree'able items in buffer[] 与等于1左移index位的值的反 |
| 460 | Insertion index in buffer[] 自加 |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |