Re: how to change the permission of /dev/ node from kernel mode.

2008-11-25 Thread Greg KH
On Tue, Nov 25, 2008 at 01:26:31PM +0530, Mohamed Thalib .H wrote: > > But i am using a kernel api to create a node then why cant i specify the > mode for. You are, what api are you using? (hint, you really aren't, you are telling userspace that if it wants to, it could create a device node for

Re: how to change the permission of /dev/ node from kernel mode.

2008-11-25 Thread Mohamed Thalib .H
On Mon, 2008-11-24 at 22:35 -0800, Greg KH wrote: > On Mon, Nov 24, 2008 at 05:02:58PM +0530, Mohamed Thalib .H wrote: > > Hi All, > > > > I have created a /dev/ node using class_create() and > > class_device_create() APIs, > > > > by default the created node is having root only permisson as

Re: how to change the permission of /dev/ node from kernel mode.

2008-11-24 Thread Greg KH
On Mon, Nov 24, 2008 at 05:02:58PM +0530, Mohamed Thalib .H wrote: > Hi All, > > I have created a /dev/ node using class_create() and > class_device_create() APIs, > > by default the created node is having root only permisson as below > > crw-rw 1 root root 251, 0 2008-11-24 16:56 /dev

Re: how to change the permission of /dev/ node from kernel mode.

2008-11-24 Thread Mohamed Thalib .H
Hi On Mon, 2008-11-24 at 15:39 +0100, Belisko Marek wrote: > Hi, > > > On Mon, Nov 24, 2008 at 12:32 PM, Mohamed Thalib .H > <[EMAIL PROTECTED]> wrote: > > Hi All, > > > >I have created a /dev/ node using class_create() and > > class_device_create() APIs, > > > > by default the created n

Re: how to change the permission of /dev/ node from kernel mode.

2008-11-24 Thread Belisko Marek
Hi, On Mon, Nov 24, 2008 at 12:32 PM, Mohamed Thalib .H <[EMAIL PROTECTED]> wrote: > Hi All, > >I have created a /dev/ node using class_create() and > class_device_create() APIs, > > by default the created node is having root only permisson as below > > crw-rw 1 root root 251, 0 2008-

how to change the permission of /dev/ node from kernel mode.

2008-11-24 Thread Mohamed Thalib .H
Hi All, I have created a /dev/ node using class_create() and class_device_create() APIs, by default the created node is having root only permisson as below crw-rw 1 root root 251, 0 2008-11-24 16:56 /dev/sp how can I give acces permission so every one can access that node I dont wa