LinuxPPC-Dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Eugene Surovegin <ebs@ebshome.net>
To: Garcia J?r?mie <GARCIAJ@3il.fr>
Cc: linuxppc-dev@ozlabs.org
Subject: Re: RE : Error while opennig device file
Date: Wed, 15 Jun 2005 11:00:11 -0700	[thread overview]
Message-ID: <20050615180011.GB21165@gate.ebshome.net> (raw)
In-Reply-To: <D4FDDD1349B5AC46B68FC26AD8AF42D6226B36@exnet.3il.fr>

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

  reply	other threads:[~2005-06-15 18:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-15 17:47 RE : Error while opennig device file Garcia Jérémie
2005-06-15 18:00 ` Eugene Surovegin [this message]
2005-06-15 18:16   ` Dustin Lang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050615180011.GB21165@gate.ebshome.net \
    --to=ebs@ebshome.net \
    --cc=GARCIAJ@3il.fr \
    --cc=linuxppc-dev@ozlabs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox