Function report |
Source Code:block\blk-core.c |
Create Date:2022-07-28 17:00:38 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:lk_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
Proto:int blk_rq_prep_clone(struct request *rq, struct request *rq_src, struct bio_set *bs, gfp_t gfp_mask, int (*bio_ctr)(struct bio *, struct bio *, void *), void *data)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct request * | rq | |
struct request * | rq_src | |
struct bio_set * | bs | |
gfp_t | gfp_mask | |
int (* | bio_ctr | |
void * | data |
1629 | If Not bs Then bs = s_bio_set is the bio_set containing bio and iovec memory pools used by* IO code that does not need private memory pools. |
1634 | If Not bio Then Go to free_and_out |
1640 | If bio Then |
1641 | request queue link = bio |
1649 | Return 0 |
1651 | free_and_out : |
1656 | Return -ENOMEM |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |