函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\libfs.c Create Date:2022-07-29 10:41:00
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:memory_read_from_buffer - copy data from the buffer*@to: the kernel space buffer to read to*@count: the maximum number of bytes to read*@ppos: the current position in the buffer*@from: the buffer to read from*@available: the size of the buffer* The

函数原型:ssize_t memory_read_from_buffer(void *to, size_t count, loff_t *ppos, const void *from, size_t available)

返回类型:ssize_t

参数:

类型参数名称
void *to
size_tcount
loff_t *ppos
const void *from
size_tavailable
718  pos等于ppos
720  如果pos小于0则返回:负EINVAL
722  如果pos大于等于available则返回:0
724  如果count大于availableposcount等于availablepos
726  memcpy(to, from + pos, count)
727  ppos等于poscount
729  返回:count