[PATCHv2 4/5] libmtd: add support for 64-bit offsets, OOB

Kevin Cernekee cernekee at gmail.com
Tue Jul 13 20:09:56 EDT 2010


On Tue, Jul 13, 2010 at 3:49 AM, Artem Bityutskiy <dedekind1 at gmail.com> wrote:
> You should find out whether the new ioctl's are supported in
> 'libmtd_open()'. This also means that all libmtd calls which need this
> flag will need a 'libmtd_t desc' parameter.

Typically I just try the new ioctl first, then fall back to the old
one if it returned -ENOTTY.  Could you recommend a way to detect the
presence of the new ioctls from libmtd_open()?

Thanks.



More information about the linux-mtd mailing list