函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\scatterlist.c Create Date:2022-07-27 07:17:45
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:sg_miter_skip - reposition mapping iterator*@miter: sg mapping iter to be skipped*@offset: number of bytes to plus the current location* Description:* Sets the offset of @miter to its current location plus @offset bytes

函数原型:bool sg_miter_skip(struct sg_mapping_iter *miter, off_t offset)

返回类型:bool

参数:

类型参数名称
struct sg_mapping_iter *miter
off_toffset
728  sg_miter_stop - stop mapping iteration*@miter: sg mapping iter to be stopped* Description:* Stops mapping iterator @miter. @miter should have been started* using sg_miter_start(). A stopped iteration can be resumed by* calling sg_miter_next() on it
730 offset循环
733  如果非sg_miter_get_next_page(miter)则返回:false
736  consumed等于min_t - return minimum of two values, using the specified type*@type: data type to use*@x: first value*@y: second value(off_t, offset, remaining bytes on page )
737  offset within page 加等于consumed
738  remaining bytes on page 减等于consumed
739  offset减等于consumed
742  返回:true
调用者
名称描述
sg_copy_buffersg_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
sg_zero_buffersg_zero_buffer - Zero-out a part of a SG list*@sgl: The SG list*@nents: Number of SG entries*@buflen: The number of bytes to zero out*@skip: Number of bytes to skip before zeroing* Returns the number of bytes zeroed.