Greg KH wrote:
On Mon, Sep 14, 2009 at 08:38:48AM -0400, Shankar Ganesh wrote:
Hi ,

When we create a node under devfs ,

There is no such thing as devfs anymore.

            hwcdev_class = class_create(THIS_MODULE, DRVNAME);
            device_create(hwcdev_class, NULL, MKDEV(dev_major, 0), dev,
DEVNAME);

 the  node is created with default permission of 600 (root=rw, others nil) ,

crw------------   root     root    252  , ....

How do i make permission setting automatically while creating node ? (i need
666 and don't want to execute chmod 666 /dev/mydev )

Create a udev rule to provide the proper permission for this device.

Thanks for your inputs

thanks,

greg k-h



--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to [email protected]
Please read the FAQ at http://kernelnewbies.org/FAQ

Reply via email to