Re: usb_class_driver how to replace .mode

Greg KH <[email protected]>
Newsgroups gmane.linux.usb.devel
Message-ID <[email protected]>
On Sun, Aug 05, 2007 at 07:34:35PM +0200, David Leipold wrote:
> Hi there,
> 
> The mode field in struct usb_class_driver was patched away in 2005.
> I'd be very happy if i could get every user to read from my device
> driver. How am i supposed to make that possible without just
> setting .mode = S_IRUSR ?

The kernel does not set this on its own (that mode value was only for
devfs on 2.4, which is not even present in 2.6 anymore.)

Just create a udev rule to set the proper mode for your device.  Take a
look at the udev documentation for details on how to do that.

hope this helps,

greg k-h

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.