The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* Access MTD device from kernel module?
@ 2003-10-16 20:43 Alan Shih
  2003-10-17  9:57 ` David Woodhouse
  0 siblings, 1 reply; 2+ messages in thread
From: Alan Shih @ 2003-10-16 20:43 UTC (permalink / raw)
  To: Linux Kernel Mailing List

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Access MTD device from kernel module?
  2003-10-16 20:43 Access MTD device from kernel module? Alan Shih
@ 2003-10-17  9:57 ` David Woodhouse
  0 siblings, 0 replies; 2+ messages in thread
From: David Woodhouse @ 2003-10-17  9:57 UTC (permalink / raw)
  To: Alan Shih; +Cc: Linux Kernel Mailing List

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-10-17  9:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-10-16 20:43 Access MTD device from kernel module? Alan Shih
2003-10-17  9:57 ` David Woodhouse

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox