other versions
- wheezy 3.2.78-1
BLK_INIT_QUEUE(9) | Block Devices | BLK_INIT_QUEUE(9) |
NAME¶
blk_init_queue - prepare a request queue for use with a block deviceSYNOPSIS¶
struct
request_queue * blk_init_queue(request_fn_proc * rfn,
spinlock_t * lock);
ARGUMENTS¶
rfnThe function to be called to process requests
that have been placed on the queue.
lock
Request queue spin lock
DESCRIPTION¶
If a block device wishes to use the standard request handling procedures, which sorts requests and coalesces adjacent requests, then it must call blk_init_queue. The function rfn will be called when there are requests on the queue that need to be processed. If the device supports plugging, then rfn may not be called immediately when requests are available on the queue, but may be called at some time later instead. Plugged queues are generally unplugged when a buffer belonging to one of the requests on the queue is needed, or due to memory pressure.NOTE¶
COPYRIGHT¶
March 2016 | Kernel Hackers Manual 3.2. |