BLK_ALLOC_QUEUE_NODE(9) | Block Devices | BLK_ALLOC_QUEUE_NODE(9) |
NAME¶
blk_alloc_queue_node - allocate a request queue
SYNOPSIS¶
struct request_queue * blk_alloc_queue_node(gfp_t gfp_mask, int node_id, spinlock_t * lock);
ARGUMENTS¶
gfp_mask
memory allocation flags
node_id
NUMA node to allocate memory from
lock
For legacy queues, pointer to a spinlock that will be
used to e.g. serialize calls to the legacy .request_fn callback.
Ignored for blk-mq request queues.
NOTE¶
pass the queue lock as the third argument to this function instead of setting the queue lock pointer explicitly to avoid triggering a sporadic crash in the blkcg code. This function namely calls blkcg_init_queue and the queue lock pointer must be set before blkcg_init_queue is called.
COPYRIGHT¶
June 2024 | Kernel Hackers Manual 3.10 |