Error while opennig device file

Garcia Jérémie GARCIAJ at
Thu Jun 16 19:20:26 EST 2005

Ok here we go, I'm sorry for that but it's always the most enormous thing that are missed.
Indeed, I do return a EBUSY when more that one process has opened the device driver.
So I'm really sorry for disturbing you for that since I had many other real hard problems in Linux
I think I'm getting Linux-paranoï...
Tks again and have a nice day

-------- Message d'origine--------
De: Dustin Lang [mailto:dalang at]
Date: mer. 15/06/2005 20:16
À: Eugene Surovegin
Cc: Garcia Jérémie; linuxppc-dev at
Objet : Re: RE : Error while opennig device file

Also - does it work from the command line?  Do both mknod commands work? 
When you "ls -l /dev/test{1,2}" , what do you get?  What happens when you 
"cat /dev/test1" or "echo > /dev/test1" ?


>> I'm sorry but this is a "copy to mail" error.
>> Here is the right code:
>> ret_val = system("mknod -m 777 /dev/test1 c 122 1");
>> ret_val = system("mknod -m 777 /dev/test2 c 122 2");
>> file_desc1 = open("/dev/test1", O_RDWR);
>> file_desc2 = open("/dev/test2", O_RDWR);

More information about the Linuxppc-dev mailing list