Reading from flash in kernel

Guennadi Liakhovetski gl at dsa-ac.de
Fri Sep 5 08:52:20 EDT 2003


On Fri, 5 Sep 2003, Guennadi Liakhovetski wrote:

> mtd = get_mtd_device(NULL, MTD_MINOR);
> ret = MTD_READ(mtd, ppos, len, &retlen, kbuf);
> put_mtd_device(mtd);

Ok, it works, It's just not the device minor-number, it's the mtdX number.
So, to get mtd1 one has to specify not 2, but 1. Could the doc. at
http://www.linux-mtd.infradead.org/tech/core.html
be fixed, plase? The comment on the top of the function seems correct.
Only I didn't read it before:-(

Thanks
Guennadi
---------------------------------
Guennadi Liakhovetski, Ph.D.
DSA Daten- und Systemtechnik GmbH
Pascalstr. 28
D-52076 Aachen
Germany



More information about the linux-mtd mailing list