All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Victor Alvidrez <v.alvidrez@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Using rtdm_irq_request from user-space.
Date: Mon, 17 Oct 2011 21:44:04 +0200	[thread overview]
Message-ID: <4E9C8584.6050708@domain.hid> (raw)
In-Reply-To: <4E9C606B.2040406@domain.hid>

On 10/17/2011 07:05 PM, Victor Alvidrez wrote:
> Hello.
> 
> I am trying to a write simple program that can listen for interrupts 
> produced by the keyboard in user-space.
> At first I tried to do this using the native API, however I figured out 
> that this functionality is turned off by default.  So I decided to use 
> the rtdm API.
> 
> I wrote the code using the rtdm_irq_* related functions/variables and 
> included the <rtdm/rtdm.h> header file.
> 
> However, upon trying to compile I get a bunch of undefined reference 
> errors.  I read through the rtdm.h file and found that there are no 
> definitions of rtdm_irq* related variables or function declarations.  
> All of these things are defined in <rtdm/rtdm_driver.h>, which you 
> cannot include in non-kernel code.
> 
> I guess it is pretty obvious that I cannot do this from user space... 
> but maybe I am missing something?


Yes.

> 
> The rtdm API manual includes a "Environments:This service can be called 
> from:" section.  And the function "rtdm_irq_request" lists "User-space 
> task (RT, non-RT)".  Doesn't this mean that it can be called from a 
> user-space program?
> 
> Thanks for any info you can provide.

This means that it can be called from the context of an ioctl emitted by
a user-space task (either RT or non RT). The RTDM skin is a kernel-only
skin.

-- 
                                                                Gilles.


      reply	other threads:[~2011-10-17 19:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-17 17:05 [Xenomai-help] Using rtdm_irq_request from user-space Victor Alvidrez
2011-10-17 19:44 ` 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=4E9C8584.6050708@domain.hid \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=v.alvidrez@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.