Function report |
Source Code:kernel\relay.c |
Create Date:2022-07-28 11:47:31 |
Last Modify:2020-03-17 19:20:22 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:relay_file_read
Proto:static ssize_t relay_file_read(struct file *filp, char __user *buffer, size_t count, loff_t *ppos)
Type:ssize_t
Parameter:
Type | Parameter | Name |
---|---|---|
struct file * | filp | |
char __user * | buffer | |
size_t | count | |
loff_t * | ppos |
1124 | written = 0 |
1127 | If Not count Then Return 0 |
1130 | inode_lock(file_inode(filp)) |
1131 | Do |
1134 | If Not lay_file_read_avail - boolean, are there unconsumed bytes available? Then Break |
1138 | avail = lay_file_read_subbuf_avail - return bytes available in sub-buffer*@read_pos: file read position*@buf: relay channel buffer |
1139 | If Not avail Then Break |
1142 | avail = min - return minimum of two values of the same or compatible types*@x: first value*@y: second value(count, avail) |
1143 | from = start of channel buffer + read_start |
1145 | If copy_to_user(buffer, from, avail) Then Break |
1155 | inode_unlock(file_inode(filp)) |
1157 | Return written |
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 |