Function report | 
Source Code:security\tomoyo\common.c | 
Create Date:2022-07-28 19:37:15 | 
| Last Modify:2020-03-18 09:15:18 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name: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.
Proto:ssize_t tomoyo_read_control(struct tomoyo_io_buffer *head, char __user *buffer, const int buffer_len)
Type:ssize_t
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct tomoyo_io_buffer * | head | |
| char __user * | buffer | |
| const int | buffer_len | 
| 2590 | If mutex_lock_interruptible( & Exclusive lock for this structure. ) Then Return -EINTR | 
| 2592 | read_user_buf = buffer | 
| 2593 | read_user_buf_avail = buffer_len | 
| 2594 | idx = moyo_read_lock - Take lock for protecting policy.* Returns index number for tomoyo_read_unlock(). | 
| 2603 | len = read_user_buf - buffer | 
| 2605 | Return len | 
| Name | Describe | 
|---|---|
| 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. | 
| 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  |