函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:sg_set_page - Set sg entry to point at given page*@sg: SG entry*@page: The page*@len: Length of data*@offset: Offset into page* Description:* Use this function to set an sg entry pointing at a page, never assign* the page directly

函数原型:static inline void sg_set_page(struct scatterlist *sg, struct page *page, unsigned int len, unsigned int offset)

返回类型:void

参数:

类型参数名称
struct scatterlist *sg
struct page *page
unsigned intlen
unsigned intoffset
119  指定sg页入口
120  offset等于offset
121  length等于len
调用者
名称描述
__sg_alloc_table_from_pages__sg_alloc_table_from_pages - Allocate and initialize an sg table from* an array of pages*@sgt: The sg table header to use*@pages: Pointer to an array of page pointers*@n_pages: Number of pages in the pages array*@offset: Offset from start of the first
setup_sgl_buf
dma_common_get_sgtableCreate scatter-list for the already allocated DMA buffer.
dma_direct_get_sgtable
blk_bvec_map_sg
__blk_bvec_map_sg
blk_rq_map_sgmap a request to scatterlist, return number of sg entries setup. Caller* must make sure sg can hold rq->nr_phys_segments entries
blk_rq_map_integrity_sglk_rq_map_integrity_sg - Map integrity metadata into a scatterlist*@q: request queue*@bio: bio with integrity metadata attached*@sglist: target scatterlist* Description: Map the integrity vectors in request into a* scatterlist
big_key_alloc_bufferAllocate a buffer consisting of a set of pages with a virtual mapping* applied over them.
derived_key_encryptBefore returning data to userspace, encrypt decrypted data.
fscrypt_crypt_blockEncrypt or decrypt a single filesystem block of file contents
fsverity_hash_pagesverity_hash_page() - hash a single data or hash page*@params: the Merkle tree's parameters*@inode: inode for which the hashing is being done*@req: preallocated hash request*@page: the page to hash*@out: output digest, size 'params->digest_size' bytes
sg_set_buf设置sg数据入口
sk_msg_page_add