Reading from flash in kernel

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


Forgot:

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);
>
> MTD_READ() returns 0,

... and retlen == len. (I started with 128 bytes).

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



More information about the linux-mtd mailing list