erasesize

David Woodhouse dwmw2 at infradead.org
Tue Jun 5 09:12:30 EDT 2001


fgiasson at mediatrix.com said:
> 	... Maybe it should be passed through the arg pointer in the ioctl(),
> in a 2 u_long sized structure?

I don't fully understand the question. The 'len' member of the struct 
erase_info contains the total length of the erase requested by the user of 
the MTD device. The only connexion with the device's erase size(s) is that 
obviously the range to be erase must start and end on an eraseblock 
boundary.

cfi_amdstd_erase_varsize() is an internal function intended to issue the
magic erase commands only to a certain address on the chip - it doesn't 
know anything about the erase size at that address, or care about the 
length field, does it?

--
dwmw2






More information about the linux-mtd mailing list