All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: "Heinick, J Michael" <Michael.Heinick@Honeywell.com>
Cc: "xenomai@xenomai.org" <xenomai@xenomai.org>
Subject: Re: [Xenomai] Test program not accessing RTDM driver
Date: Mon, 11 Jan 2016 15:55:36 +0100	[thread overview]
Message-ID: <20160111145536.GB853@hermes.click-hack.org> (raw)
In-Reply-To: <D9EDB4F689BF9F4EA6F2158A073942732E7C9E64@de08ex3008.global.ds.honeywell.com>

On Mon, Jan 11, 2016 at 02:33:58PM +0000, Heinick, J Michael wrote:
> 
> .........1.........2.........3.........4.........5.........6.........7....|
> 
> Currently, I have a RTDM driver that installs with insmod, creates the
> node in /dev/rtdm, uninstalls with rmmod, and removes the node from
> /dev/rtdm.  At this early stage this RTDM driver is only a skeleton that
> should log a message with rtdm_printk whenever the open, close, read,
> write, and ioctl handlers are called. So far I have been unable to get
> any indication that any of the handlers I have written for the driver are
> interacting with the small test program even though the program appears to
> run without errors.
> 
> The ioctl call in the test program generates the following message in the
> dmesg file:
> 
> [12503.672657] [Xenomai] tcgrtdmtest[3595] called regular ioctl() on /dev/rtdm/tcgrtdm
> 
> The example at http://git.xenomai.org/xenomai-jro.git/tree/demo/posix/cobalt/gpiopwm.c?h=410c
> recently suggested by Jorge Ramirez Ortiz has been somewhat helpful, but
> I still do not know what I am missing.  Are my rtdm_device and
> rtdm_driver structures correct enough to get the handlers called, or is the
> problem elsewhere?
> 
> Thanks for any help that you can provide.
> Mike H.
> 
> Additional details on our situation are included below:
> 
> The code: vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
> // ------------- tcgrtdmtest.c -----------
> #include <xenomai/init.h>
> #include <rtdm/rtdm.h>
> #include <stdlib.h>
> #include <errno.h>
> #include <error.h>
> #include <stdio.h>
> 
> int main()
>   {
>   int fd;
>   unsigned int rply;
>   rply = 987; // =0x3DB
>   fd = open("/dev/rtdm/tcgrtdm",O_RDWR);

What happens if you try open("/dev/tcgrtdm", ...) ?

-- 
					    Gilles.
https://click-hack.org


      parent reply	other threads:[~2016-01-11 14:55 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-11 14:33 [Xenomai] Test program not accessing RTDM driver Heinick, J Michael
2016-01-11 14:54 ` Philippe Gerum
2016-01-12 15:43   ` Heinick, J Michael
2016-01-12 16:24     ` Philippe Gerum
2016-01-11 14:55 ` Gilles Chanteperdrix [this message]

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=20160111145536.GB853@hermes.click-hack.org \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=Michael.Heinick@Honeywell.com \
    --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.