diff options
author | Boaz Harrosh <bharrosh@panasas.com> | 2010-10-19 10:13:50 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2010-10-26 11:42:35 -0400 |
commit | 6dd1d8a7953cdc203c6eb694ce8eafe2dcd3e9da (patch) | |
tree | d75130fef86fd2a111a3908e7d32f4e6e3302f77 /include/scsi | |
parent | e96e72c45a1e78e9266dd70113b851395a440ef3 (diff) |
[SCSI] libosd: write/read_sg_kern API
This is a trivial addition to the SG API that can receive kernel
pointers. It is only used by the out-of-tree test module. So
it's immediate need is questionable. For maintenance ease it might
just get in, as it's very small.
John.
do you need this in the Kernel, or is it only for osd_ktest.ko?
Signed-off-by: John A. Chandy <john.chandy@uconn.edu>
Signed-off-by: Boaz Harrosh <bharrosh@panasas.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'include/scsi')
-rw-r--r-- | include/scsi/osd_initiator.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/scsi/osd_initiator.h b/include/scsi/osd_initiator.h index 169a5dcda096..53a9e886612b 100644 --- a/include/scsi/osd_initiator.h +++ b/include/scsi/osd_initiator.h | |||
@@ -455,6 +455,13 @@ int osd_req_write_sg(struct osd_request *or, | |||
455 | int osd_req_read_sg(struct osd_request *or, | 455 | int osd_req_read_sg(struct osd_request *or, |
456 | const struct osd_obj_id *obj, struct bio *bio, | 456 | const struct osd_obj_id *obj, struct bio *bio, |
457 | const struct osd_sg_entry *sglist, unsigned numentries); | 457 | const struct osd_sg_entry *sglist, unsigned numentries); |
458 | int osd_req_write_sg_kern(struct osd_request *or, | ||
459 | const struct osd_obj_id *obj, void **buff, | ||
460 | const struct osd_sg_entry *sglist, unsigned numentries); | ||
461 | int osd_req_read_sg_kern(struct osd_request *or, | ||
462 | const struct osd_obj_id *obj, void **buff, | ||
463 | const struct osd_sg_entry *sglist, unsigned numentries); | ||
464 | |||
458 | /* | 465 | /* |
459 | * Root/Partition/Collection/Object Attributes commands | 466 | * Root/Partition/Collection/Object Attributes commands |
460 | */ | 467 | */ |