[RFC] Support for > 2Gib MTD
Artem Bityutskiy
dedekind at infradead.org
Fri Oct 10 08:44:08 EDT 2008
On Thu, 2008-10-09 at 11:49 -0700, Bruce_Leonard at selinc.com wrote:
> > Please, add something like
> > uint8_t padding[128]; /* Reserved for future, should be zeroed */
> > to the new data structures.
> >
>
> Is this for future expandibility?
Sure.
> > > To indicate that the new 64 bit interface is to be used
> > > I would introduce a new flag for 'struct mtd_info_user_XX->flags',
> > > something like this:
> > >
> > > #define MTD_LARGE_SIZE 0x4000
> >
> > No need for this. Because you'll change size of data structures and
> > their layout, this is not going to be compatible anyway.
> >
> How then would you indicate to user space that they need to use the new
> 64-bit structures and IOCTLs? How does using another bit in an existing
> 'flags' field of a structure change the size and layout of the structure?
If you have different data structure, you cannot reuse old ioctl. You
have to define a new ioctl for the 64-bit interface. Old code will use
old ioctl which you do not change. New code will use new ioctl. Once we
have new ioctls, the old one may be declared as obsolete. This is my
understanding of how things go.
--
Best regards,
Artem Bityutskiy (Битюцкий Артём)
More information about the linux-mtd
mailing list