aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorJens Axboe <axboe@suse.de>2005-06-20 08:06:01 -0400
committerJens Axboe <axboe@suse.de>2005-06-20 08:06:01 -0400
commitdd1cab95f356f1395278633565f198463cf6bd24 (patch)
treeddf12e2fad7c0df0656a10ee6aac3f12a04dbed8 /include/linux
parentb823825e8e09aac6dc1ca362cd5639a87329d636 (diff)
[PATCH] Cleanup blk_rq_map_* interfaces
Change the blk_rq_map_user() and blk_rq_map_kern() interface to require a previously allocated request to be passed in. This is both more efficient for multiple iterations of mapping data to the same request, and it is also a much nicer API. Signed-off-by: Jens Axboe <axboe@suse.de>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/blkdev.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h
index 67339bc5f6bc..fc0dce078616 100644
--- a/include/linux/blkdev.h
+++ b/include/linux/blkdev.h
@@ -558,10 +558,9 @@ extern void blk_sync_queue(struct request_queue *q);
558extern void __blk_stop_queue(request_queue_t *q); 558extern void __blk_stop_queue(request_queue_t *q);
559extern void blk_run_queue(request_queue_t *); 559extern void blk_run_queue(request_queue_t *);
560extern void blk_queue_activity_fn(request_queue_t *, activity_fn *, void *); 560extern void blk_queue_activity_fn(request_queue_t *, activity_fn *, void *);
561extern struct request *blk_rq_map_user(request_queue_t *, int, void __user *, unsigned int); 561extern int blk_rq_map_user(request_queue_t *, struct request *, void __user *, unsigned int);
562extern int blk_rq_unmap_user(struct request *, struct bio *, unsigned int); 562extern int blk_rq_unmap_user(struct bio *, unsigned int);
563extern struct request *blk_rq_map_kern(request_queue_t *, int, void *, 563extern int blk_rq_map_kern(request_queue_t *, struct request *, void *, unsigned int, unsigned int);
564 unsigned int, unsigned int);
565extern int blk_execute_rq(request_queue_t *, struct gendisk *, struct request *); 564extern int blk_execute_rq(request_queue_t *, struct gendisk *, struct request *);
566 565
567static inline request_queue_t *bdev_get_queue(struct block_device *bdev) 566static inline request_queue_t *bdev_get_queue(struct block_device *bdev)