Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\bio.c Create Date:2022-07-28 16:55:05
Last Modify:2020-03-17 23:13:58 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:_clone_fast - clone a bio that shares the original bio's biovec*@bio: bio to clone*@gfp_mask: allocation priority*@bs: bio_set to allocate from* Like __bio_clone_fast, only also allocates the returned bio

Proto:struct bio *bio_clone_fast(struct bio *bio, gfp_t gfp_mask, struct bio_set *bs)

Type:struct bio

Parameter:

TypeParameterName
struct bio *bio
gfp_tgfp_mask
struct bio_set *bs
661  b = _alloc_bioset - allocate a bio for I/O*@gfp_mask: the GFP_* mask given to the slab allocator*@nr_iovecs: number of iovecs to pre-allocate*@bs: the bio_set to allocate from
662  If Not b Then Return NULL
665  __bio_clone_fast - clone a bio that shares the original bio's biovec*@bio: destination bio*@bio_src: bio to clone* Clone a &bio. Caller will own the returned bio, but not* the actual data it points to. Reference count of returned* bio will be one.
667  If bio_integrity(bio) Then
670  ret = bio_integrity_clone(b, bio, gfp_mask)
672  If ret < 0 Then
674  Return NULL
678  Return b
Caller
NameDescribe
bio_split_split - split a bio*@bio: bio to split*@sectors: number of sectors to split from the front of @bio*@gfp: gfp mask*@bs: bio set to allocate from* Allocates and returns a new bio which represents @sectors from the start of
blk_rq_prep_clonelk_rq_prep_clone - Helper function to setup clone request*@rq: the request to be setup*@rq_src: original request to be cloned*@bs: bio_set that bios for clone are allocated from*@gfp_mask: memory allocation mask for bio