| Function report | 
| Source Code: block\bio.c | Create Date:2022-07-28 16:56:30 | 
| Last Modify:2020-03-17 23:13:58 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:_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
Proto:struct bio *bio_split(struct bio *bio, int sectors, gfp_t gfp, struct bio_set *bs)
Type:struct bio
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct bio * | bio | |
| int | sectors | |
| gfp_t | gfp | |
| struct bio_set * | bs | 
| 1896 | BUG_ON(sectors >= bio_sectors(bio)) | 
| 1899 | If Not split Then Return NULL | 
| 1902 | residual I/O count = sectors << 9 | 
| 1904 | If bio_integrity(split) Then bio_integrity_trim(split) | 
| 1909 | If bio_flagged(bio, BIO_TRACE_COMPLETION) Then bio_set_flag(split, BIO_TRACE_COMPLETION) | 
| 1912 | Return split | 
| Name | Describe | 
|---|---|
| blk_bio_discard_split | |
| blk_bio_write_zeroes_split | |
| blk_bio_write_same_split | |
| blk_bio_segment_split | lk_bio_segment_split - split a bio in two bios*@q: [in] request queue pointer*@bio: [in] bio to be split*@bs: [in] bio set to allocate the clone from*@segs: [out] number of segments in the bio with the first half of the sectors* Clone @bio, update the | 
| __blk_queue_bounce | |
| bio_next_split | _next_split - get next @sectors from a bio, splitting if necessary*@bio: bio to split*@sectors: number of sectors to split from the front of @bio*@gfp: gfp mask*@bs: bio set to allocate from* Returns a bio representing the next @sectors of @bio - if the | 
| 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 |