Getting the major number of the device

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

 



Hi,
I am creating the device file using mknod() function in the C program based on some check.
I want the major number associated with the device ( i registered the device in insmod using dynamic allocation.)
I can run a script (which is given in the Linux device driver 2 - allexandro rubini) to get it. But i need it in my C program.
Can I exchange information from a script to C program? If yes, how????
 
 
 
Thanks in advance.
 
Regards,
Anj
 

[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