All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Marcel Soulot <msoulot@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] driver: IOCTL command behavior
Date: Thu, 16 Apr 2009 14:59:20 +0200	[thread overview]
Message-ID: <49E72BA8.20203@domain.hid> (raw)
In-Reply-To: <37f89760904160447j7399b4ctced93a3e4956db6a@domain.hid>

Marcel Soulot wrote:
> Hi,
> 
> I wrote a driver and used IOCTL command. When I test my driver with a test
> application with root access the IOCTL cmd work fine.
> I notice when I declared my IOCTL command that I used the _IOR for all of
> them. Even the IOCTL command is a read (on register) or write.
> So I try to correct my mistake and wants to use _IOR for read command and
> _IOW for write command.
> For the write command, I got a error -25 (not a typewriter) so I don't
> understand why.
> I also try to change the _IOW to _IOWR but same mistake.
> 
> Someone can explain what is the problem, please ?

A piece of code is worth a thousand words...

-- 
                                                 Gilles.


  reply	other threads:[~2009-04-16 12:59 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-16 11:47 [Xenomai-help] driver: IOCTL command behavior Marcel Soulot
2009-04-16 12:59 ` Gilles Chanteperdrix [this message]
     [not found]   ` <37f89760904160654g43fde4f0l6cd228faa65d6baf@domain.hid>
2009-04-16 14:17     ` Gilles Chanteperdrix
2009-04-16 14:55       ` Marcel Soulot
2009-04-16 15:15         ` Jan Kiszka
2009-04-16 15:47           ` Marcel Soulot

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=49E72BA8.20203@domain.hid \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=msoulot@domain.hid \
    --cc=xenomai@xenomai.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.