Query: blk_insert_request
OS: suse
Section: 9
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
BLK_INSERT_REQUEST(9) Block Devices BLK_INSERT_REQUEST(9)NAMEblk_insert_request - insert a special request into a request queueSYNOPSISvoid blk_insert_request(struct request_queue * q, struct request * rq, int at_head, void * data);ARGUMENTSq request queue where request should be inserted rq request to be inserted at_head insert request at head or tail of queue data private dataDESCRIPTIONMany block devices need to execute commands asynchronously, so they don't block the whole kernel from preemption during request execution. This is accomplished normally by inserting aritficial requests tagged as REQ_TYPE_SPECIAL in to the corresponding request queue, and letting them be scheduled for actual execution by the request queue. We have the option of inserting the head or the tail of the queue. Typically we use the tail for new ioctls and so forth. We use the head of the queue for things like a QUEUE_FULL message from a device, or a host that is unable to accept a particular command.COPYRIGHTKernel Hackers Manual 2.6. July 2010 BLK_INSERT_REQUEST(9)