函数逻辑报告 |
Source Code:lib\scatterlist.c |
Create Date:2022-07-27 07:17:47 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:sg_copy_buffer - Copy data between a linear buffer and an SG list*@sgl: The SG list*@nents: Number of SG entries*@buf: Where to copy from*@buflen: The number of bytes to copy*@skip: Number of bytes to skip before copying*@to_buffer: transfer direction
函数原型:size_t sg_copy_buffer(struct scatterlist *sgl, unsigned int nents, void *buf, size_t buflen, off_t skip, bool to_buffer)
返回类型:size_t
参数:
类型 | 参数 | 名称 |
---|---|---|
struct scatterlist * | sgl | |
unsigned int | nents | |
void * | buf | |
size_t | buflen | |
off_t | skip | |
bool | to_buffer |
843 | offset等于0 |
845 | sg_flags等于use kmap_atomic |
849 | 否则sg_flags或等于lush back to phys on unmap |
852 | 开始映射迭代一个SG名单 |
860 | len等于两数取小( length of the mapped area , buflen - offset) |
864 | 否则内存复制( pointer to the mapped area , buf + offset, len) |
872 | 返回:offset |
名称 | 描述 |
---|---|
sg_copy_from_buffer | 从线性缓冲区拷贝到SG |
sg_copy_to_buffer | 从SG列表复制到一个线性缓冲区 |
sg_pcopy_from_buffer | sg_pcopy_from_buffer - Copy from a linear buffer to an SG list*@sgl: The SG list*@nents: Number of SG entries*@buf: Where to copy from*@buflen: The number of bytes to copy*@skip: Number of bytes to skip before copying* Returns the number of copied bytes. |
sg_pcopy_to_buffer | sg_pcopy_to_buffer - Copy from an SG list to a linear buffer*@sgl: The SG list*@nents: Number of SG entries*@buf: Where to copy to*@buflen: The number of bytes to copy*@skip: Number of bytes to skip before copying* Returns the number of copied bytes. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |