Re: Access MTD device from kernel module?

From: David Woodhouse
Date: Fri Oct 17 2003 - 04:58:54 EST


On Thu, 2003-10-16 at 13:43 -0700, Alan Shih wrote:
> I got stuck with a problem regarding a hardware driver (i.e. NIC driver)
> trying to read a MTD partition.
>
> I know I can export MTD's functions as kernel symbols but not sure if that's
> the best way to do this.

struct mtd_info *mtd = get_mtd_device(NULL, mtd_nr);

mtd->read(...);

put_mtd_device(mtd);


--
dwmw2

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/