Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ExeBy/smexe_ro.../usr/include/linux
File: chio.h
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
[0] Fix | Delete
/*
[1] Fix | Delete
* ioctl interface for the scsi media changer driver
[2] Fix | Delete
*/
[3] Fix | Delete
[4] Fix | Delete
/* changer element types */
[5] Fix | Delete
#define CHET_MT 0 /* media transport element (robot) */
[6] Fix | Delete
#define CHET_ST 1 /* storage element (media slots) */
[7] Fix | Delete
#define CHET_IE 2 /* import/export element */
[8] Fix | Delete
#define CHET_DT 3 /* data transfer element (tape/cdrom/whatever) */
[9] Fix | Delete
#define CHET_V1 4 /* vendor specific #1 */
[10] Fix | Delete
#define CHET_V2 5 /* vendor specific #2 */
[11] Fix | Delete
#define CHET_V3 6 /* vendor specific #3 */
[12] Fix | Delete
#define CHET_V4 7 /* vendor specific #4 */
[13] Fix | Delete
[14] Fix | Delete
[15] Fix | Delete
/*
[16] Fix | Delete
* CHIOGPARAMS
[17] Fix | Delete
* query changer properties
[18] Fix | Delete
*
[19] Fix | Delete
* CHIOVGPARAMS
[20] Fix | Delete
* query vendor-specific element types
[21] Fix | Delete
*
[22] Fix | Delete
* accessing elements works by specifing type and unit of the element.
[23] Fix | Delete
* for example, storage elements are addressed with type = CHET_ST and
[24] Fix | Delete
* unit = 0 .. cp_nslots-1
[25] Fix | Delete
*
[26] Fix | Delete
*/
[27] Fix | Delete
struct changer_params {
[28] Fix | Delete
int cp_curpicker; /* current transport element */
[29] Fix | Delete
int cp_npickers; /* number of transport elements (CHET_MT) */
[30] Fix | Delete
int cp_nslots; /* number of storage elements (CHET_ST) */
[31] Fix | Delete
int cp_nportals; /* number of import/export elements (CHET_IE) */
[32] Fix | Delete
int cp_ndrives; /* number of data transfer elements (CHET_DT) */
[33] Fix | Delete
};
[34] Fix | Delete
struct changer_vendor_params {
[35] Fix | Delete
int cvp_n1; /* number of vendor specific elems (CHET_V1) */
[36] Fix | Delete
char cvp_label1[16];
[37] Fix | Delete
int cvp_n2; /* number of vendor specific elems (CHET_V2) */
[38] Fix | Delete
char cvp_label2[16];
[39] Fix | Delete
int cvp_n3; /* number of vendor specific elems (CHET_V3) */
[40] Fix | Delete
char cvp_label3[16];
[41] Fix | Delete
int cvp_n4; /* number of vendor specific elems (CHET_V4) */
[42] Fix | Delete
char cvp_label4[16];
[43] Fix | Delete
int reserved[8];
[44] Fix | Delete
};
[45] Fix | Delete
[46] Fix | Delete
[47] Fix | Delete
/*
[48] Fix | Delete
* CHIOMOVE
[49] Fix | Delete
* move a medium from one element to another
[50] Fix | Delete
*/
[51] Fix | Delete
struct changer_move {
[52] Fix | Delete
int cm_fromtype; /* type/unit of source element */
[53] Fix | Delete
int cm_fromunit;
[54] Fix | Delete
int cm_totype; /* type/unit of destination element */
[55] Fix | Delete
int cm_tounit;
[56] Fix | Delete
int cm_flags;
[57] Fix | Delete
};
[58] Fix | Delete
#define CM_INVERT 1 /* flag: rotate media (for double-sided like MOD) */
[59] Fix | Delete
[60] Fix | Delete
[61] Fix | Delete
/*
[62] Fix | Delete
* CHIOEXCHANGE
[63] Fix | Delete
* move one medium from element #1 to element #2,
[64] Fix | Delete
* and another one from element #2 to element #3.
[65] Fix | Delete
* element #1 and #3 are allowed to be identical.
[66] Fix | Delete
*/
[67] Fix | Delete
struct changer_exchange {
[68] Fix | Delete
int ce_srctype; /* type/unit of element #1 */
[69] Fix | Delete
int ce_srcunit;
[70] Fix | Delete
int ce_fdsttype; /* type/unit of element #2 */
[71] Fix | Delete
int ce_fdstunit;
[72] Fix | Delete
int ce_sdsttype; /* type/unit of element #3 */
[73] Fix | Delete
int ce_sdstunit;
[74] Fix | Delete
int ce_flags;
[75] Fix | Delete
};
[76] Fix | Delete
#define CE_INVERT1 1
[77] Fix | Delete
#define CE_INVERT2 2
[78] Fix | Delete
[79] Fix | Delete
[80] Fix | Delete
/*
[81] Fix | Delete
* CHIOPOSITION
[82] Fix | Delete
* move the transport element (robot arm) to a specific element.
[83] Fix | Delete
*/
[84] Fix | Delete
struct changer_position {
[85] Fix | Delete
int cp_type;
[86] Fix | Delete
int cp_unit;
[87] Fix | Delete
int cp_flags;
[88] Fix | Delete
};
[89] Fix | Delete
#define CP_INVERT 1
[90] Fix | Delete
[91] Fix | Delete
[92] Fix | Delete
/*
[93] Fix | Delete
* CHIOGSTATUS
[94] Fix | Delete
* get element status for all elements of a specific type
[95] Fix | Delete
*/
[96] Fix | Delete
struct changer_element_status {
[97] Fix | Delete
int ces_type;
[98] Fix | Delete
unsigned char *ces_data;
[99] Fix | Delete
};
[100] Fix | Delete
#define CESTATUS_FULL 0x01 /* full */
[101] Fix | Delete
#define CESTATUS_IMPEXP 0x02 /* media was imported (inserted by sysop) */
[102] Fix | Delete
#define CESTATUS_EXCEPT 0x04 /* error condition */
[103] Fix | Delete
#define CESTATUS_ACCESS 0x08 /* access allowed */
[104] Fix | Delete
#define CESTATUS_EXENAB 0x10 /* element can export media */
[105] Fix | Delete
#define CESTATUS_INENAB 0x20 /* element can import media */
[106] Fix | Delete
[107] Fix | Delete
[108] Fix | Delete
/*
[109] Fix | Delete
* CHIOGELEM
[110] Fix | Delete
* get more detailed status information for a single element
[111] Fix | Delete
*/
[112] Fix | Delete
struct changer_get_element {
[113] Fix | Delete
int cge_type; /* type/unit */
[114] Fix | Delete
int cge_unit;
[115] Fix | Delete
int cge_status; /* status */
[116] Fix | Delete
int cge_errno; /* errno */
[117] Fix | Delete
int cge_srctype; /* source element of the last move/exchange */
[118] Fix | Delete
int cge_srcunit;
[119] Fix | Delete
int cge_id; /* scsi id (for data transfer elements) */
[120] Fix | Delete
int cge_lun; /* scsi lun (for data transfer elements) */
[121] Fix | Delete
char cge_pvoltag[36]; /* primary volume tag */
[122] Fix | Delete
char cge_avoltag[36]; /* alternate volume tag */
[123] Fix | Delete
int cge_flags;
[124] Fix | Delete
};
[125] Fix | Delete
/* flags */
[126] Fix | Delete
#define CGE_ERRNO 0x01 /* errno available */
[127] Fix | Delete
#define CGE_INVERT 0x02 /* media inverted */
[128] Fix | Delete
#define CGE_SRC 0x04 /* media src available */
[129] Fix | Delete
#define CGE_IDLUN 0x08 /* ID+LUN available */
[130] Fix | Delete
#define CGE_PVOLTAG 0x10 /* primary volume tag available */
[131] Fix | Delete
#define CGE_AVOLTAG 0x20 /* alternate volume tag available */
[132] Fix | Delete
[133] Fix | Delete
[134] Fix | Delete
/*
[135] Fix | Delete
* CHIOSVOLTAG
[136] Fix | Delete
* set volume tag
[137] Fix | Delete
*/
[138] Fix | Delete
struct changer_set_voltag {
[139] Fix | Delete
int csv_type; /* type/unit */
[140] Fix | Delete
int csv_unit;
[141] Fix | Delete
char csv_voltag[36]; /* volume tag */
[142] Fix | Delete
int csv_flags;
[143] Fix | Delete
};
[144] Fix | Delete
#define CSV_PVOLTAG 0x01 /* primary volume tag */
[145] Fix | Delete
#define CSV_AVOLTAG 0x02 /* alternate volume tag */
[146] Fix | Delete
#define CSV_CLEARTAG 0x04 /* clear volume tag */
[147] Fix | Delete
[148] Fix | Delete
/* ioctls */
[149] Fix | Delete
#define CHIOMOVE _IOW('c', 1,struct changer_move)
[150] Fix | Delete
#define CHIOEXCHANGE _IOW('c', 2,struct changer_exchange)
[151] Fix | Delete
#define CHIOPOSITION _IOW('c', 3,struct changer_position)
[152] Fix | Delete
#define CHIOGPICKER _IOR('c', 4,int) /* not impl. */
[153] Fix | Delete
#define CHIOSPICKER _IOW('c', 5,int) /* not impl. */
[154] Fix | Delete
#define CHIOGPARAMS _IOR('c', 6,struct changer_params)
[155] Fix | Delete
#define CHIOGSTATUS _IOW('c', 8,struct changer_element_status)
[156] Fix | Delete
#define CHIOGELEM _IOW('c',16,struct changer_get_element)
[157] Fix | Delete
#define CHIOINITELEM _IO('c',17)
[158] Fix | Delete
#define CHIOSVOLTAG _IOW('c',18,struct changer_set_voltag)
[159] Fix | Delete
#define CHIOGVPARAMS _IOR('c',19,struct changer_vendor_params)
[160] Fix | Delete
[161] Fix | Delete
/* ---------------------------------------------------------------------- */
[162] Fix | Delete
[163] Fix | Delete
/*
[164] Fix | Delete
* Local variables:
[165] Fix | Delete
* c-basic-offset: 8
[166] Fix | Delete
* End:
[167] Fix | Delete
*/
[168] Fix | Delete
[169] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function