Getting manufacturer id and device ID from user space

Jörn Engel joern at wohnheim.fh-wedel.de
Thu Sep 1 11:21:47 EDT 2005


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.

Brian, why should userspace know about the exact type of flash?

Jörn

-- 
/* Keep these two variables together */
int bar;




More information about the linux-mtd mailing list