lkml.org 
[lkml]   [2003]   [Oct]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: Access MTD device from kernel module?
From
Date
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@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:58    [W:0.022 / U:0.280 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site