~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/uapi/linux/chio.h

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /include/uapi/linux/chio.h (Version linux-6.11.5) and /include/uapi/linux/chio.h (Version linux-5.10.223)


** Warning: Cannot open xref database.

  1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux      1 
  2 /*                                                
  3  * ioctl interface for the scsi media changer     
  4  */                                               
  5                                                   
  6 #ifndef _UAPI_LINUX_CHIO_H                        
  7 #define _UAPI_LINUX_CHIO_H                        
  8                                                   
  9 /* changer element types */                       
 10 #define CHET_MT   0     /* media transport ele    
 11 #define CHET_ST   1     /* storage element (me    
 12 #define CHET_IE   2     /* import/export eleme    
 13 #define CHET_DT   3     /* data transfer eleme    
 14 #define CHET_V1   4     /* vendor specific #1     
 15 #define CHET_V2   5     /* vendor specific #2     
 16 #define CHET_V3   6     /* vendor specific #3     
 17 #define CHET_V4   7     /* vendor specific #4     
 18                                                   
 19                                                   
 20 /*                                                
 21  * CHIOGPARAMS                                    
 22  *    query changer properties                    
 23  *                                                
 24  * CHIOVGPARAMS                                   
 25  *    query vendor-specific element types         
 26  *                                                
 27  *    accessing elements works by specifing ty    
 28  *    for example, storage elements are addres    
 29  *    unit = 0 .. cp_nslots-1                     
 30  *                                                
 31  */                                               
 32 struct changer_params {                           
 33         int cp_curpicker;  /* current transpor    
 34         int cp_npickers;   /* number of transp    
 35         int cp_nslots;     /* number of storag    
 36         int cp_nportals;   /* number of import    
 37         int cp_ndrives;    /* number of data t    
 38 };                                                
 39 struct changer_vendor_params {                    
 40         int  cvp_n1;       /* number of vendor    
 41         char cvp_label1[16];                      
 42         int  cvp_n2;       /* number of vendor    
 43         char cvp_label2[16];                      
 44         int  cvp_n3;       /* number of vendor    
 45         char cvp_label3[16];                      
 46         int  cvp_n4;       /* number of vendor    
 47         char cvp_label4[16];                      
 48         int  reserved[8];                         
 49 };                                                
 50                                                   
 51                                                   
 52 /*                                                
 53  * CHIOMOVE                                       
 54  *    move a medium from one element to anothe    
 55  */                                               
 56 struct changer_move {                             
 57         int cm_fromtype;        /* type/unit o    
 58         int cm_fromunit;                          
 59         int cm_totype;  /* type/unit of destin    
 60         int cm_tounit;                            
 61         int cm_flags;                             
 62 };                                                
 63 #define CM_INVERT   1   /* flag: rotate media     
 64                                                   
 65                                                   
 66 /*                                                
 67  * CHIOEXCHANGE                                   
 68  *    move one medium from element #1 to eleme    
 69  *    and another one from element #2 to eleme    
 70  *    element #1 and #3 are allowed to be iden    
 71  */                                               
 72 struct changer_exchange {                         
 73         int ce_srctype;     /* type/unit of el    
 74         int ce_srcunit;                           
 75         int ce_fdsttype;    /* type/unit of el    
 76         int ce_fdstunit;                          
 77         int ce_sdsttype;    /* type/unit of el    
 78         int ce_sdstunit;                          
 79         int ce_flags;                             
 80 };                                                
 81 #define CE_INVERT1   1                            
 82 #define CE_INVERT2   2                            
 83                                                   
 84                                                   
 85 /*                                                
 86  * CHIOPOSITION                                   
 87  *    move the transport element (robot arm) t    
 88  */                                               
 89 struct changer_position {                         
 90         int cp_type;                              
 91         int cp_unit;                              
 92         int cp_flags;                             
 93 };                                                
 94 #define CP_INVERT   1                             
 95                                                   
 96                                                   
 97 /*                                                
 98  * CHIOGSTATUS                                    
 99  *    get element status for all elements of a    
100  */                                               
101 struct changer_element_status {                   
102         int             ces_type;                 
103         unsigned char   __user *ces_data;         
104 };                                                
105 #define CESTATUS_FULL     0x01 /* full */         
106 #define CESTATUS_IMPEXP   0x02  /* media was i    
107 #define CESTATUS_EXCEPT   0x04  /* error condi    
108 #define CESTATUS_ACCESS   0x08  /* access allo    
109 #define CESTATUS_EXENAB   0x10  /* element can    
110 #define CESTATUS_INENAB   0x20  /* element can    
111                                                   
112                                                   
113 /*                                                
114  * CHIOGELEM                                      
115  *    get more detailed status information for    
116  */                                               
117 struct changer_get_element {                      
118         int     cge_type;        /* type/unit     
119         int     cge_unit;                         
120         int     cge_status;      /* status */     
121         int     cge_errno;       /* errno */      
122         int     cge_srctype;     /* source ele    
123         int     cge_srcunit;                      
124         int     cge_id;          /* scsi id  (    
125         int     cge_lun;         /* scsi lun (    
126         char    cge_pvoltag[36]; /* primary vo    
127         char    cge_avoltag[36]; /* alternate     
128         int     cge_flags;                        
129 };                                                
130 /* flags */                                       
131 #define CGE_ERRNO     0x01       /* errno avai    
132 #define CGE_INVERT    0x02       /* media inve    
133 #define CGE_SRC       0x04       /* media src     
134 #define CGE_IDLUN     0x08       /* ID+LUN ava    
135 #define CGE_PVOLTAG   0x10       /* primary vo    
136 #define CGE_AVOLTAG   0x20       /* alternate     
137                                                   
138                                                   
139 /*                                                
140  * CHIOSVOLTAG                                    
141  *    set volume tag                              
142  */                                               
143 struct changer_set_voltag {                       
144         int     csv_type;        /* type/unit     
145         int     csv_unit;                         
146         char    csv_voltag[36];  /* volume tag    
147         int     csv_flags;                        
148 };                                                
149 #define CSV_PVOLTAG   0x01       /* primary vo    
150 #define CSV_AVOLTAG   0x02       /* alternate     
151 #define CSV_CLEARTAG  0x04       /* clear volu    
152                                                   
153 /* ioctls */                                      
154 #define CHIOMOVE       _IOW('c', 1,struct chan    
155 #define CHIOEXCHANGE   _IOW('c', 2,struct chan    
156 #define CHIOPOSITION   _IOW('c', 3,struct chan    
157 #define CHIOGPICKER    _IOR('c', 4,int)           
158 #define CHIOSPICKER    _IOW('c', 5,int)           
159 #define CHIOGPARAMS    _IOR('c', 6,struct chan    
160 #define CHIOGSTATUS    _IOW('c', 8,struct chan    
161 #define CHIOGELEM      _IOW('c',16,struct chan    
162 #define CHIOINITELEM   _IO('c',17)                
163 #define CHIOSVOLTAG    _IOW('c',18,struct chan    
164 #define CHIOGVPARAMS   _IOR('c',19,struct chan    
165                                                   
166 #endif /* _UAPI_LINUX_CHIO_H */                   
167                                                   

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php