Function report |
Source Code:fs\exec.c |
Create Date:2022-07-28 20:03:57 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:kernel_read_file
Proto:int kernel_read_file(struct file *file, void **buf, loff_t *size, loff_t max_size, enum kernel_read_file_id id)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct file * | file | |
void ** | buf | |
loff_t * | size | |
loff_t | max_size | |
enum kernel_read_file_id | id |
899 | bytes = 0 |
905 | ret = deny_write_access(file) |
909 | ret = security_kernel_read_file(file, id) |
914 | If i_size <= 0 Then |
925 | If Not buf Then |
930 | pos = 0 |
951 | out_free : |
952 | If ret < 0 Then |
953 | If id != READING_FIRMWARE_PREALLOC_BUFFER Then |
959 | out : |
960 | allow_write_access(file) |
961 | Return ret |
Name | Describe |
---|---|
kernel_read_file_from_path | |
kernel_read_file_from_fd |
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 |