Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\bio-integrity.c Create Date:2022-07-28 18:02:15
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

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

Proto:int bio_integrity_add_page(struct bio *bio, struct page *page, unsigned int len, unsigned int offset)

Type:int

Parameter:

TypeParameterName
struct bio *bio
struct page *page
unsigned intlen
unsigned intoffset
123  bip = bio_integrity(bio)
126  If # of integrity bio_vecs >= grity bio_vec slots Then
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  Return 0
131  iv = bip_vec + # of integrity bio_vecs
133  If # 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. Then Return 0
138  bv_page = page
139  bv_len = len
140  bv_offset = offset
141  # of integrity bio_vecs ++
143  Return len
Caller
NameDescribe
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