All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] driver: IOCTL command behavior
@ 2009-04-16 11:47 Marcel Soulot
  2009-04-16 12:59 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 6+ messages in thread
From: Marcel Soulot @ 2009-04-16 11:47 UTC (permalink / raw)
  To: xenomai

[-- Attachment #1: Type: text/plain, Size: 572 bytes --]

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 ?
Marcel.

[-- Attachment #2: Type: text/html, Size: 614 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-04-16 15:47 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-16 11:47 [Xenomai-help] driver: IOCTL command behavior Marcel Soulot
2009-04-16 12:59 ` Gilles Chanteperdrix
     [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

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.