When to use mtd.h or mtd-user.h

Josh Boyer jwboyer at gmail.com
Tue May 15 11:14:49 EDT 2007


On 5/15/07, MikeW <mw_phil at yahoo.co.uk> wrote:
> I note some applications for running in userspace say:
> #include <linux/mtd/mtd.h>

Er, which ones?  I don't see anything in mtd-utils that does that.

> and some say
> #include <mtd/mtd-user.h>
>
> Which is the recommended usage, and why ?

mtd-user.h because it's been sanitized for inclusion in userspace.

josh




More information about the linux-mtd mailing list