summaryrefslogtreecommitdiff
path: root/utils/scsi/rbscsi.h
diff options
context:
space:
mode:
Diffstat (limited to 'utils/scsi/rbscsi.h')
-rw-r--r--utils/scsi/rbscsi.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/utils/scsi/rbscsi.h b/utils/scsi/rbscsi.h
index 2b56aabad2..c7345a6cdf 100644
--- a/utils/scsi/rbscsi.h
+++ b/utils/scsi/rbscsi.h
@@ -66,7 +66,20 @@ struct rb_scsi_raw_cmd_t
66}; 66};
67 67
68/* open a device, returns a handle or NULL on error 68/* open a device, returns a handle or NULL on error
69 * the caller can optionally provide an error printing function */ 69 * the caller can optionally provide an error printing function
70 *
71 * Linux:
72 * Path must be the block device, typically /dev/sdX and the program
73 * must have the permission to open it in read/write mode.
74 *
75 * Windows:
76 * If the path starts with '\', it will be use as-is. This allows to use
77 * paths such as \\.\PhysicalDriveX or \\.\ScsiX
78 * Alternatively, the code will try to map a logical drive (such as 'C:') to
79 * the correspoding physical drive.
80 * In any case, on recent windows, the program needs to be started with
81 * Administrator privileges.
82 */
70rb_scsi_device_t rb_scsi_open(const char *path, unsigned flags, void *user, 83rb_scsi_device_t rb_scsi_open(const char *path, unsigned flags, void *user,
71 rb_scsi_printf_t printf); 84 rb_scsi_printf_t printf);
72/* performs a raw transfer, returns !=0 on error */ 85/* performs a raw transfer, returns !=0 on error */