函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:_integrity_add_page - Attach integrity metadata*@bio: bio to update*@page: page containing integrity metadata*@len: number of bytes of integrity metadata in page*@offset: start offset within page

函数原型:int bio_integrity_add_page(struct bio *bio, struct page *page, unsigned int len, unsigned int offset)

返回类型:int

参数:

类型参数名称
struct bio *bio
struct page *page
unsigned intlen
unsigned intoffset
123  bip等于bio_integrity(bio)
126  如果# of integrity bio_vecs 大于等于grity bio_vec slots
127  printk - print a kernel message*@fmt: format string* This is printk(). It can be called from any context. We want it to work.* We try to grab the console_lock. If we succeed, it's easy - we log the* output and call the console drivers
128  返回:0
131  iv等于bip_vec# of integrity bio_vecs
133  如果# of integrity bio_vecs Check if adding a bio_vec after bprv with offset would create a gap in* the SG list. Most drivers don't care about this, but some do.则返回:0
138  bv_page等于page
139  bv_len等于len
140  bv_offset等于offset
141  # of integrity bio_vecs 自加
143  返回:len
调用者
名称描述
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