Movatterモバイル変換


[0]ホーム

URL:


blk_queue_make_request
Prev Chapter 14. Block Devices Next

Name

blk_queue_make_request — define an alternate make_request function for a device

Synopsis

voidblk_queue_make_request(struct request_queue *q,
 make_request_fn *mfn);
 

Arguments

struct request_queue * q

the request queue for the device to be affected

make_request_fn * mfn

the alternate make_request function

Description

The normal way forstruct bios to be passed to a device driver is for them to be collected into requests on a request queue, and then to allow the device driver to select requests off that queue when it is ready. This works well for many block devices. However some block devices (typically virtual devices such as md or lvm) do not benefit from the processing on the request queue, and are served best by having the requests passed directly to them. This can be achieved by providing a function toblk_queue_make_request.

Caveat: The driver that does this *must* be able to deal appropriately with buffers inhighmemory. This can be accomplished by either calling__bio_kmap_atomic to get a temporary kernel mapping, or by callingblk_queue_bounce to create a buffer in normal memory.


Prev Up Next
blk_set_stacking_limits Home blk_queue_bounce_limit

[8]ページ先頭

©2009-2025 Movatter.jp