函数逻辑报告 |
Source Code:security\tomoyo\audit.c |
Create Date:2022-07-27 21:02:45 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:moyo_write_log2 - Write an audit log.*@r: Pointer to "struct tomoyo_request_info".*@len: Buffer size needed for @fmt and @args.*@fmt: The printf()'s format string.*@args: va_list structure for @fmt.* Returns nothing.
函数原型:void tomoyo_write_log2(struct tomoyo_request_info *r, int len, const char *fmt, va_list args)
返回类型:void
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct tomoyo_request_info * | r | |
| int | len | |
| const char * | fmt | |
| va_list | args |
| 370 | bool quota_exceeded = false |
| 379 | 如果非entry则 |
| 384 | len等于moyo_round2 - Round up to power of 2 for calculating memory usage.*@size: Size to be rounded up.* Returns @size.* Since SLOB does not round up, this function simply returns @size. |
| 389 | size等于len加moyo_round2 - Round up to power of 2 for calculating memory usage.*@size: Size to be rounded up.* Returns @size.* Since SLOB does not round up, this function simply returns @size. |
| 390 | 加自旋锁 |
| 394 | quota_exceeded = true |
| 395 | 否则 |
| 397 | 添加链表项 |
| 400 | 自旋锁解锁 |
| 401 | 如果quota_exceeded则 |
| 407 | out : |
| 408 | 返回 |
| 名称 | 描述 |
|---|---|
| tomoyo_write_log | moyo_write_log - Write an audit log.*@r: Pointer to "struct tomoyo_request_info".*@fmt: The printf()'s format string, followed by parameters.* Returns nothing. |
| tomoyo_supervisor | moyo_supervisor - Ask for the supervisor's decision |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |