Getting manufacturer id and device ID from user space

Josh Boyer jdub at us.ibm.com
Fri Sep 2 09:04:40 EDT 2005


On Thu, 2005-09-01 at 17:21 +0200, Jörn Engel wrote:
> On Thu, 1 September 2005 08:12:12 -0500, Josh Boyer wrote:
> > On Tue, 2005-08-30 at 10:51 -0700, Brian Gunnison wrote:
> > > Hi,
> > > 
> > > I searched the archive (I wish it was all in one list). 
> > > 
> > > I have a product that may have one or more flash manufacturers. 
> > > 
> > > I need the manufacturer and device types. i.e. the .name field from amd_flash_info
> > 
> > Currently there is no way to get this information from userspace.  Most
> > likely due to the fact that userspace shouldn't care because that's
> > MTD's job, but whatever.
> > 
> > If you want to get this info from userspace, you could create
> > some /sysfs or /proc entries in your mapping driver.  Or patch mtdchar
> > to add an ioctl to return that information.
> 
> Don't!  Yet another ioctl is exactly the thing that we don't need.

I listed the options in the order I prefer ;).  And note that I didn't
say "submit a patch".  I just said "patch".

josh





More information about the linux-mtd mailing list