RE : RE : Error while opennig device file

From: Garcia Jérémie <hidden>
Date: 2005-06-15 18:23:19

I give you all those infos tomorrow cause I'm from France and it's soon =
9:00pm, so I'm not at office.
Tks a lot for your help


-------- Message d'origine--------
De: Eugene Surovegin [mailto:ebs@ebshome.net]
Date: mer. 15/06/2005 20:00
=C0: Garcia J=E9r=E9mie
Cc: linuxppc-dev@ozlabs.org
Objet : Re: RE : Error while opennig device file
=20
On Wed, Jun 15, 2005 at 07:47:56PM +0200, Garcia J?r?mie wrote:
I'm sorry but this is a "copy to mail" error. =20
Here is the right code:
=20
ret_val =3D system("mknod -m 777 /dev/test1 c 122 1");
ret_val =3D system("mknod -m 777 /dev/test2 c 122 2");
=20
file_desc1 =3D open("/dev/test1", O_RDWR);
file_desc2 =3D open("/dev/test2", O_RDWR);
=20
Sorry again but I would have liked that it was so easy...lol
OK, how does open routine for your device look like?
What error do you get on second open?

--=20
Eugene
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help