Error while opennig device file

Eugene Surovegin ebs at ebshome.net
Thu Jun 16 04:00:11 EST 2005


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