Function report |
Source Code:block\mq-deadline.c |
Create Date:2022-07-28 17:50:36 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:dd_request_merge
Proto:static int dd_request_merge(struct request_queue *q, struct request **rq, struct bio *bio)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct request_queue * | q | |
| struct request ** | rq | |
| struct bio * | bio |
| 442 | dd = elevator_data |
| 443 | sector = bio_end_sector(bio) |
| 446 | If Not front_merges Then Return ELEVATOR_NO_MERGE |
| 449 | __rq = elv_rb_find( & * requests (deadline_rq s) are present on both sort_list and fifo_list[Return the data direction, READ or WRITE.(bio)], sector) |
| 450 | If __rq Then |
| 453 | If an we safely merge with this request? Then |
| 455 | Return ELEVATOR_FRONT_MERGE |
| 459 | Return ELEVATOR_NO_MERGE |
| 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 |