On Fri, Jul 09, 2021 at 04:09:57PM +0800, Ming Lei wrote: > +/** > + * blk_mq_dev_map_queues - provide generic queue mapping > + * @qmap: CPU to hardware queue map. > + * @dev_off: Offset to use for the device > + * @get_queue_affinity: Callback to retrieve queue affinity > + * @dev_data: Device data passed to get_queue_affinity() > + * @fallback: If true, fallback to default blk-mq mapping in case of > + * any failure The docs have a different order compared to the function definition (dev_data). > + * > + * Generic function to setup each queue mapping in @qmap. It will query > + * each queue's affinity via @get_queue_affinity and built queue mapping > + * that maps a queue to the CPUs in the queue affinity. > + * > + * Driver has to set correct @dev_data, so that the driver callback > + * of @get_queue_affinity can work correctly. > + */ > +int blk_mq_dev_map_queues(struct blk_mq_queue_map *qmap, void *dev_data, > + int dev_off, get_queue_affinty_fn *get_queue_affinity, > + bool fallback)