Access MTD device from kernel module?
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.
TIA
Alan
Quoted 5 lines · Alan Shih
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);
Signature · 1 line
dwmw2