DEVFS permissions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi ,

When we create a node under devfs ,


            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 )


--
With Regards,
ShankarGanesh K .

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux