Error while opennig device file

Garcia Jérémie GARCIAJ at 3il.fr
Thu Jun 16 04:22:06 EST 2005


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 at ebshome.net]
Date: mer. 15/06/2005 20:00
À: Garcia Jérémie
Cc: linuxppc-dev at ozlabs.org
Objet : Re: RE : Error while opennig device file
 
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.  
> 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);
> 
> 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?

-- 
Eugene





More information about the Linuxppc-dev mailing list