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
|