aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJames Bottomley <James.Bottomley@SteelEye.com>2005-06-20 08:06:52 -0400
committerJens Axboe <axboe@suse.de>2005-06-20 08:06:52 -0400
commitf1970baf6d74e03bd32072ab453f2fc01bc1b8d3 (patch)
tree559898cdf83bd0f93b8a72248c6423a6548fb604 /include
parentdd1cab95f356f1395278633565f198463cf6bd24 (diff)
[PATCH] Add scatter-gather support for the block layer SG_IO
Signed-off-by: Jens Axboe <axboe@suse.de>
Diffstat (limited to 'include')
-rw-r--r--include/linux/bio.h4
-rw-r--r--include/linux/blkdev.h1
2 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/bio.h b/include/linux/bio.h
index 1dd2bc2e84ae..ebcd03ba2e20 100644
--- a/include/linux/bio.h
+++ b/include/linux/bio.h
@@ -281,6 +281,10 @@ extern int bio_add_page(struct bio *, struct page *, unsigned int,unsigned int);
281extern int bio_get_nr_vecs(struct block_device *); 281extern int bio_get_nr_vecs(struct block_device *);
282extern struct bio *bio_map_user(struct request_queue *, struct block_device *, 282extern struct bio *bio_map_user(struct request_queue *, struct block_device *,
283 unsigned long, unsigned int, int); 283 unsigned long, unsigned int, int);
284struct sg_iovec;
285extern struct bio *bio_map_user_iov(struct request_queue *,
286 struct block_device *,
287 struct sg_iovec *, int, int);
284extern void bio_unmap_user(struct bio *); 288extern void bio_unmap_user(struct bio *);
285extern struct bio *bio_map_kern(struct request_queue *, void *, unsigned int, 289extern struct bio *bio_map_kern(struct request_queue *, void *, unsigned int,
286 unsigned int); 290 unsigned int);
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h
index fc0dce078616..0430ea3e5f2e 100644
--- a/include/linux/blkdev.h
+++ b/include/linux/blkdev.h
@@ -561,6 +561,7 @@ extern void blk_queue_activity_fn(request_queue_t *, activity_fn *, void *);
561extern int blk_rq_map_user(request_queue_t *, struct request *, 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 bio *, unsigned int); 562extern int blk_rq_unmap_user(struct bio *, unsigned int);
563extern int blk_rq_map_kern(request_queue_t *, struct request *, void *, unsigned int, unsigned int); 563extern int blk_rq_map_kern(request_queue_t *, struct request *, void *, unsigned int, unsigned int);
564extern int blk_rq_map_user_iov(request_queue_t *, struct request *, struct sg_iovec *, int);
564extern int blk_execute_rq(request_queue_t *, struct gendisk *, struct request *); 565extern int blk_execute_rq(request_queue_t *, struct gendisk *, struct request *);
565 566
566static inline request_queue_t *bdev_get_queue(struct block_device *bdev) 567static inline request_queue_t *bdev_get_queue(struct block_device *bdev)