~ubuntu-branches/ubuntu/oneiric/sg3-utils/oneiric

« back to all changes in this revision

Viewing changes to include/sg_cmds_extra.h

  • Committer: Bazaar Package Importer
  • Author(s): Michael Biebl
  • Date: 2009-11-05 20:42:13 UTC
  • mfrom: (5.2.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20091105204213-ug7wrb6m7l9kmvyg
Tags: 1.28-2
* QA upload.
* Add libsgutils2-2.symbols.kfreebsd. Some of the symbols are Linux
  specific causing FTBFS on kfreebsd.

Show diffs side-by-side

added added

removed removed

Lines of Context:
68
68
                             int timeout_secs, void * paramp, int param_len,
69
69
                             int noisy, int verbose);
70
70
 
 
71
/* Invokes a SCSI GET LBA STATUS command (SBC). Returns 0 -> success,
 
72
 * SG_LIB_CAT_INVALID_OP -> GET LBA STATUS not supported,
 
73
 * SG_LIB_CAT_ILLEGAL_REQ -> bad field in cdb, SG_LIB_CAT_ABORTED_COMMAND,
 
74
 * SG_LIB_CAT_NOT_READY -> device not ready, -1 -> other failure */
 
75
extern int sg_ll_get_lba_status(int sg_fd, uint64_t start_llba, void * resp,
 
76
                                int alloc_len, int noisy, int verbose);
 
77
 
71
78
/* Invokes a SCSI PERSISTENT RESERVE IN command (SPC). Returns 0
72
79
 * when successful, SG_LIB_CAT_INVALID_OP if command not supported,
73
80
 * SG_LIB_CAT_ILLEGAL_REQ if field in cdb not supported,
85
92
                                        void * paramp, int param_len,
86
93
                                        int noisy, int verbose);
87
94
 
 
95
/* Invokes a SCSI READ BLOCK LIMITS command. Return of 0 -> success,
 
96
 * SG_LIB_CAT_INVALID_OP -> READ BLOCK LIMITS not supported,
 
97
 * SG_LIB_CAT_ILLEGAL_REQ -> bad field in cdb, SG_LIB_CAT_ABORTED_COMMAND,
 
98
 * SG_LIB_NOT_READY (shouldn't happen), -1 -> other failure */
 
99
extern int sg_ll_read_block_limits(int sg_fd, void * resp,
 
100
                                   int mx_resp_len, int noisy, int verbose);
 
101
 
88
102
/* Invokes a SCSI READ BUFFER command (SPC). Return of 0 ->
89
103
 * success, SG_LIB_CAT_INVALID_OP -> invalid opcode,
90
104
 * SG_LIB_CAT_ILLEGAL_REQ -> bad field in cdb, SG_LIB_CAT_UNIT_ATTENTION,
195
209
extern int sg_ll_set_id_info(int sg_fd, int itype, void * paramp,
196
210
                             int param_len, int noisy, int verbose);
197
211
 
 
212
/* Invokes a SCSI UNMAP (SBC-3) command. Return of 0 -> success,
 
213
 * SG_LIB_CAT_INVALID_OP -> command not supported,
 
214
 * SG_LIB_CAT_ILLEGAL_REQ -> bad field in cdb, SG_LIB_CAT_ABORTED_COMMAND,
 
215
 * SG_LIB_CAT_UNIT_ATTENTION, -1 -> other failure */
 
216
extern int sg_ll_unmap(int sg_fd, int group_num, int timeout_secs,
 
217
                       void * paramp, int param_len, int noisy, int verbose);
 
218
 
198
219
/* Invokes a SCSI VERIFY (10) command (SBC and MMC).
199
220
 * Note that 'veri_len' is in blocks while 'data_out_len' is in bytes.
200
221
 * Returns of 0 -> success,