函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:_integrity_process - Process integrity metadata for a bio*@bio: bio to generate/verify integrity metadata for*@proc_iter: iterator to process*@proc_fn: Pointer to the relevant processing function

函数原型:static blk_status_t bio_integrity_process(struct bio *bio, struct bvec_iter *proc_iter, integrity_processing_fn *proc_fn)

返回类型:blk_status_t

参数:

类型参数名称
struct bio *bio
struct bvec_iter *proc_iter
integrity_processing_fn *proc_fn
156  bi等于blk_get_integrity(bi_disk)
160  bip等于bio_integrity(bio)
161  ret等于BLK_STS_OK
162  prot_buf等于page_address(bv_page)加bv_offset
165  disk_name等于disk_name
166  interval等于1左移interval_exp
167  seed等于 device address in 512 byte sectors
168  prot_buf等于prot_buf
171  kaddr等于kmap_atomic(bv_page)
173  data_buf等于kaddrbv_offset
174  data_size等于bv_len
176  ret等于proc_fn( & iter)
177  如果ret
178  Prevent people trying to call kunmap_atomic() as if it were kunmap()* kunmap_atomic() should get the return value of kmap_atomic, not the page.(kaddr)
179  返回:ret
182  Prevent people trying to call kunmap_atomic() as if it were kunmap()* kunmap_atomic() should get the return value of kmap_atomic, not the page.(kaddr)
184  返回:ret
调用者
名称描述
bio_integrity_prep_integrity_prep - Prepare bio for integrity I/O*@bio: bio to prepare* Description: Checks if the bio already has an integrity payload attached.* If it does, the payload has been generated by another kernel subsystem,* and we just pass it through
bio_integrity_verify_fn_integrity_verify_fn - Integrity I/O completion worker*@work: Work struct stored in bio to be verified* Description: This workqueue function is called to complete a READ* request. The function verifies the transferred integrity metadata