函数逻辑报告 |
Source Code:security\tomoyo\common.c |
Create Date:2022-07-27 21:06:25 |
Last Modify:2020-03-18 09:15:18 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:moyo_read_control - read() for /sys/kernel/security/tomoyo/ interface.*@head: Pointer to "struct tomoyo_io_buffer".*@buffer: Poiner to buffer to write to.*@buffer_len: Size of @buffer.* Returns bytes read on success, negative value otherwise.
函数原型:ssize_t tomoyo_read_control(struct tomoyo_io_buffer *head, char __user *buffer, const int buffer_len)
返回类型:ssize_t
参数:
类型 | 参数 | 名称 |
---|---|---|
struct tomoyo_io_buffer * | head | |
char __user * | buffer | |
const int | buffer_len |
2590 | 如果mutex_lock_interruptible( & Exclusive lock for this structure. )则返回:负EINTR |
2592 | read_user_buf等于buffer |
2594 | idx等于moyo_read_lock - Take lock for protecting policy.* Returns index number for tomoyo_read_unlock(). |
2595 | 如果moyo_flush - Flush queued string to userspace's buffer.*@head: Pointer to "struct tomoyo_io_buffer".* Returns true if all data was flushed, false otherwise.则循环 |
2603 | len等于read_user_buf减buffer |
2605 | 返回:len |
名称 | 描述 |
---|---|
tomoyo_read | moyo_read - read() for /sys/kernel/security/tomoyo/ interface.*@file: Pointer to "struct file".*@buf: Pointer to buffer.*@count: Size of @buf.*@ppos: Unused.* Returns bytes read on success, negative value otherwise. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |