Function report |
Source Code:block\blk-mq-virtio.c |
Create Date:2022-07-28 18:05:29 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:lk_mq_virtio_map_queues - provide a default queue mapping for virtio device*@qmap: CPU to hardware queue map
Proto:int blk_mq_virtio_map_queues(struct blk_mq_queue_map *qmap, struct virtio_device *vdev, int first_vec)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct blk_mq_queue_map * | qmap | |
| struct virtio_device * | vdev | |
| int | first_vec |
| 30 | If Not get_vq_affinity Then Go to fallback |
| 34 | mask = get_vq_affinity(vdev, first_vec + queue) |
| 38 | for_each_cpu(cpu, mask) |
| 39 | mq_map[cpu] = queue_offset + queue |
| 42 | Return 0 |
| 43 | fallback : |
| 44 | Return blk_mq_map_queues(qmap) |
| 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 |