RE : RE : Error while opennig device file
From: Garcia Jérémie <hidden>
Date: 2005-06-16 09:25:02
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
before.=20
I think I'm getting Linux-parano=EF...
Tks again and have a nice day
-------- Message d'origine--------
De: Dustin Lang [mailto:dalang@cs.ubc.ca]
Date: mer. 15/06/2005 20:16
=C0: Eugene Surovegin
Cc: Garcia J=E9r=E9mie; linuxppc-dev@ozlabs.org
Objet : Re: RE : Error while opennig device file
=20
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=20
"cat /dev/test1" or "echo > /dev/test1" ?
Cheers,
dstn.
quoted
I'm sorry but this is a "copy to mail" error. Here is the right code: ret_val =3D system("mknod -m 777 /dev/test1 c 122 1"); ret_val =3D system("mknod -m 777 /dev/test2 c 122 2"); file_desc1 =3D open("/dev/test1", O_RDWR); file_desc2 =3D open("/dev/test2", O_RDWR);