Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\scatterlist.c Create Date:2022-07-28 06:20:46
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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

Proto:bool sg_miter_skip(struct sg_mapping_iter *miter, off_t offset)

Type:bool

Parameter:

TypeParameterName
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  When offset cycle
733  If Not sg_miter_get_next_page(miter) Then Return 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  Return true
Caller
NameDescribe
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.