Function report |
Source Code:block\blk-merge.c |
Create Date:2022-07-28 17:05:34 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Return the maximum number of sectors from the start of a bio that may be* submitted as a single request to a block device. If enough sectors remain,* align the end to the physical block size. Otherwise align the end to the* logical block size
Proto:static inline unsigned get_max_io_size(struct request_queue *q, struct bio *bio)
Type:unsigned
Parameter:
Type | Parameter | Name |
---|---|---|
struct request_queue * | q | |
struct bio * | bio |
146 | sectors = Return maximum size of a request at given offset. Only valid for* file system requests. |
147 | max_sectors = sectors |
150 | start_offset = device address in 512 byte sectors & pbs - 1 |
152 | max_sectors += start_offset |
153 | max_sectors &= ~(pbs - 1) |
154 | If max_sectors > start_offset Then Return max_sectors - start_offset |
Name | Describe |
---|---|
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 |
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 |