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

TOMOYO Linux Cross Reference
Linux/Documentation/ABI/testing/sysfs-class-mtd

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ 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.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /Documentation/ABI/testing/sysfs-class-mtd (Version linux-6.12-rc7) and /Documentation/ABI/testing/sysfs-class-mtd (Version linux-2.6.0)


  1 What:           /sys/class/mtd/                   
  2 Date:           April 2009                        
  3 KernelVersion:  2.6.29                            
  4 Contact:        linux-mtd@lists.infradead.org     
  5 Description:                                      
  6                 The mtd/ class subdirectory be    
  7                 (MTD core).                       
  8                                                   
  9 What:           /sys/class/mtd/mtdX/              
 10 Date:           April 2009                        
 11 KernelVersion:  2.6.29                            
 12 Contact:        linux-mtd@lists.infradead.org     
 13 Description:                                      
 14                 The /sys/class/mtd/mtd{0,1,2,3    
 15                 to each /dev/mtdX character de    
 16                 physical/simulated flash devic    
 17                 device, or concatenated flash     
 18                                                   
 19 What:           /sys/class/mtd/mtdXro/            
 20 Date:           April 2009                        
 21 KernelVersion:  2.6.29                            
 22 Contact:        linux-mtd@lists.infradead.org     
 23 Description:                                      
 24                 These directories provide the     
 25                 nodes for /sys/class/mtd/mtdX/    
 26                                                   
 27 What:           /sys/class/mtd/mtdX/dev           
 28 Date:           April 2009                        
 29 KernelVersion:  2.6.29                            
 30 Contact:        linux-mtd@lists.infradead.org     
 31 Description:                                      
 32                 Major and minor numbers of the    
 33                 to this MTD device (in <major>    
 34                 read-write device so <minor> w    
 35                                                   
 36 What:           /sys/class/mtd/mtdXro/dev         
 37 Date:           April 2009                        
 38 KernelVersion:  2.6.29                            
 39 Contact:        linux-mtd@lists.infradead.org     
 40 Description:                                      
 41                 Major and minor numbers of the    
 42                 to the read-only variant of th    
 43                 <major>:<minor> format).  In t    
 44                                                   
 45 What:           /sys/class/mtd/mtdX/erasesize     
 46 Date:           April 2009                        
 47 KernelVersion:  2.6.29                            
 48 Contact:        linux-mtd@lists.infradead.org     
 49 Description:                                      
 50                 "Major" erase size for the dev    
 51                 zero, this is the eraseblock s    
 52                 Otherwise, the MEMGETREGIONCOU    
 53                 can be used to determine the a    
 54                                                   
 55 What:           /sys/class/mtd/mtdX/flags         
 56 Date:           April 2009                        
 57 KernelVersion:  2.6.29                            
 58 Contact:        linux-mtd@lists.infradead.org     
 59 Description:                                      
 60                 A hexadecimal value representi    
 61                 together:                         
 62                                                   
 63                 0x0400: MTD_WRITEABLE - device    
 64                 0x0800: MTD_BIT_WRITEABLE - si    
 65                 0x1000: MTD_NO_ERASE - no eras    
 66                 0x2000: MTD_POWERUP_LOCK - alw    
 67                                                   
 68 What:           /sys/class/mtd/mtdX/name          
 69 Date:           April 2009                        
 70 KernelVersion:  2.6.29                            
 71 Contact:        linux-mtd@lists.infradead.org     
 72 Description:                                      
 73                 A human-readable ASCII name fo    
 74                 This will match the name in /p    
 75                                                   
 76 What:           /sys/class/mtd/mtdX/numerasere    
 77 Date:           April 2009                        
 78 KernelVersion:  2.6.29                            
 79 Contact:        linux-mtd@lists.infradead.org     
 80 Description:                                      
 81                 For devices that have variable    
 82                 provides the total number of e    
 83                 it will read back as zero.        
 84                                                   
 85 What:           /sys/class/mtd/mtdX/oobsize       
 86 Date:           April 2009                        
 87 KernelVersion:  2.6.29                            
 88 Contact:        linux-mtd@lists.infradead.org     
 89 Description:                                      
 90                 Number of OOB bytes per page.     
 91                                                   
 92 What:           /sys/class/mtd/mtdX/size          
 93 Date:           April 2009                        
 94 KernelVersion:  2.6.29                            
 95 Contact:        linux-mtd@lists.infradead.org     
 96 Description:                                      
 97                 Total size of the device/parti    
 98                                                   
 99 What:           /sys/class/mtd/mtdX/type          
100 Date:           April 2009                        
101 KernelVersion:  2.6.29                            
102 Contact:        linux-mtd@lists.infradead.org     
103 Description:                                      
104                 One of the following ASCII str    
105                 type:                             
106                                                   
107                 absent, ram, rom, nor, nand, m    
108                                                   
109 What:           /sys/class/mtd/mtdX/writesize     
110 Date:           April 2009                        
111 KernelVersion:  2.6.29                            
112 Contact:        linux-mtd@lists.infradead.org     
113 Description:                                      
114                 Minimal writable flash unit si    
115                 a positive integer.               
116                                                   
117                 In the case of NOR flash it is    
118                 bits can be cleared).             
119                                                   
120                 In the case of NAND flash it i    
121                 half page, or a quarter page).    
122                                                   
123                 In the case of ECC NOR, it is     
124                                                   
125 What:           /sys/class/mtd/mtdX/ecc_streng    
126 Date:           April 2012                        
127 KernelVersion:  3.4                               
128 Contact:        linux-mtd@lists.infradead.org     
129 Description:                                      
130                 Maximum number of bit errors t    
131                 correcting within each region     
132                 ecc_step_size).  This will alw    
133                                                   
134                 In the case of devices lacking    
135                                                   
136 What:           /sys/class/mtd/mtdX/bitflip_th    
137 Date:           April 2012                        
138 KernelVersion:  3.4                               
139 Contact:        linux-mtd@lists.infradead.org     
140 Description:                                      
141                 This allows the user to examin    
142                 mtd returns -EUCLEAN from mtd_    
143                 maximum number of bit errors t    
144                 region comprising an ecc step     
145                 or exceeds this value, -EUCLEA    
146                 an error, 0 is returned.  High    
147                 return code as an indication t    
148                 degrading and should be scruti    
149                 marked as bad.                    
150                                                   
151                 The initial value may be speci    
152                 If not, then the default value    
153                                                   
154                 The introduction of this featu    
155                 meaning of the -EUCLEAN return    
156                 interpreted to mean simply "on    
157                 corrected".  Its new interpret    
158                 dangerously high number of bit    
159                 more regions comprising an ecc    
160                 "dangerously high" can be adju    
161                 bitflip_threshold.  Users are     
162                 however, unless they know what    
163                 knowledge of the properties of    
164                 bitflip_threshold should be lo    
165                 block degradation, but high en    
166                 a persistent return value of -    
167                 bitflips occur.  Note that if     
168                 ecc_strength, -EUCLEAN is neve    
169                 Conversely, if bitflip_thresho    
170                 returned, absent a hard error.    
171                                                   
172                 This is generally applicable o    
173                 capability.  It is ignored on     
174                 i.e., devices for which ecc_st    
175                                                   
176 What:           /sys/class/mtd/mtdX/ecc_step_s    
177 Date:           May 2013                          
178 KernelVersion:  3.10                              
179 Contact:        linux-mtd@lists.infradead.org     
180 Description:                                      
181                 The size of a single region co    
182                 step.  Devices may have severa    
183                 each writesize region.            
184                                                   
185                 It will always be a non-negati    
186                 devices lacking any ECC capabi    
187                                                   
188 What:           /sys/class/mtd/mtdX/ecc_failur    
189 Date:           June 2014                         
190 KernelVersion:  3.17                              
191 Contact:        linux-mtd@lists.infradead.org     
192 Description:                                      
193                 The number of failures reporte    
194                 these failures are associated     
195                                                   
196                 It will always be a non-negati    
197                 devices lacking any ECC capabi    
198                                                   
199 What:           /sys/class/mtd/mtdX/corrected_    
200 Date:           June 2014                         
201 KernelVersion:  3.17                              
202 Contact:        linux-mtd@lists.infradead.org     
203 Description:                                      
204                 The number of bits that have b    
205                 device's ECC.                     
206                                                   
207                 It will always be a non-negati    
208                 devices lacking any ECC capabi    
209                                                   
210 What:           /sys/class/mtd/mtdX/bad_blocks    
211 Date:           June 2014                         
212 KernelVersion:  3.17                              
213 Contact:        linux-mtd@lists.infradead.org     
214 Description:                                      
215                 The number of blocks marked as    
216                                                   
217 What:           /sys/class/mtd/mtdX/bbt_blocks    
218 Date:           June 2014                         
219 KernelVersion:  3.17                              
220 Contact:        linux-mtd@lists.infradead.org     
221 Description:                                      
222                 The number of blocks that are     
223                 this partition. These are typi    
224                 bad block table (BBT).            
225                                                   
226 What:           /sys/class/mtd/mtdX/offset        
227 Date:           March 2015                        
228 KernelVersion:  4.1                               
229 Contact:        linux-mtd@lists.infradead.org     
230 Description:                                      
231                 For a partition, the offset of    
232                 of the parent (another partiti    
233                 This attribute is absent on fl    
234                 to distinguish them from parti    
235                                                   
236 What:           /sys/class/mtd/mtdX/oobavail      
237 Date:           April 2018                        
238 KernelVersion:  4.16                              
239 Contact:        linux-mtd@lists.infradead.org     
240 Description:                                      
241                 Number of bytes available for     
242                 the out of band area.             
                                                      

~ [ 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