Function report |
Source Code:lib\scatterlist.c |
Create Date:2022-07-28 06:20:47 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name: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
Proto:size_t sg_copy_buffer(struct scatterlist *sgl, unsigned int nents, void *buf, size_t buflen, off_t skip, bool to_buffer)
Type:size_t
Parameter:
Type | Parameter | Name |
---|---|---|
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 | Else sg_flags |= lush back to phys on unmap |
860 | len = min - return minimum of two values of the same or compatible types*@x: first value*@y: second value( length of the mapped area , buflen - offset) |
862 | If to_buffer Then No 3D Now!(buf + offset, pointer to the mapped area , len) |
864 | Else No 3D Now!( pointer to the mapped area , buf + offset, len) |
872 | Return offset |
Name | Describe |
---|---|
sg_copy_from_buffer | sg_copy_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* Returns the number of copied bytes. |
sg_copy_to_buffer | sg_copy_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* Returns the number of copied bytes. |
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. |
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 |