Re: Problem in calling System call [sys_mknod] in Kernel Module.

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

 



I am working on character device driver and want to
take an advantage of automatic allocation of major
number. Therefore what I want is that whenever the
init_module is called, the major number allocated by
calling register_chrdev should be passed as an
argument to sys_mknod and the users should have device
ready in /dev heirarchy and the user should not
explicitly call mknod with the new allocated major
number.

It seems to be a good approach rather that I print a
allocated major number and tell someone to executed
mknod command explicitly.

Regards
Dinesh


 --- Greg KH <greg@xxxxxxxxx> wrote: 
> On Mon, Oct 04, 2004 at 06:52:17PM +0100, Dinesh
> Ahuja wrote:
> > Hi All,
> > 
> > I need to call sys_mknod from a module
> 
> Why do you feel you need to do this from within the
> kernel?
> 
> thanks,
> 
> greg k-h
> 
> --
> Kernelnewbies: Help each other learn about the Linux
> kernel.
> Archive:      
> http://mail.nl.linux.org/kernelnewbies/
> FAQ:           http://kernelnewbies.org/faq/
> 
>  

________________________________________________________________________
Yahoo! India Matrimony: Find your life partner online
Go to: http://yahoo.shaadi.com/india-matrimony

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[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