Skip to contentSkip to conversation

Access MTD device from kernel module?

DISCUSSION Alan Shih 2 participants 2 messages Oct 16, 2003 – Oct 17, 2003

lore
Share & tools
lore

Alan Shih

author
#0 lore raw

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

#1 lore raw
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