CONFIG_XENO_OPT_NATIVE_INTR?
A message that is not in the archive (sent off-list or not yet received): [email protected]
First of all, please do not drop the list from receiving Your mails, this way nobody else can answer Your questions.
One example is:
A user program can call rt_dev_ioctl on the open file descriptor associated with Your timer hardware.
In the driver ioctl entry - which is executed in the context of the user task - it can block and be unblocked
from within the isr when the desired condition is met.
Ulrich
Quoted 57 lines · egemen kaleli
--- On Sun, 9/28/08, egemen kaleli <[email protected]> wrote:
From: egemen kaleli <[email protected]>
Subject: Re: [Xenomai-help]CONFIG_XENO_OPT_NATIVE_INTR?
To: [email protected]
Date: Sunday, September 28, 2008, 12:31 PMİf I want to handle a hardware timer interrupt in kernel module ,how can I make user space aware of happening an interrupt so that I can pass a clock tick to user program from kernel driver through timer interrupt.
--- On Fri, 9/26/08, egemen kaleli <[email protected]> wrote:
From: egemen kaleli <[email protected]>
Subject: Re: [Xenomai-help]CONFIG_XENO_OPT_NATIVE_INTR?
To: "Ulrich Schwab" <[email protected]>
Date: Friday, September 26, 2008, 5:13 PMthanks for help.Can I use rtdm interrupt handler in user space?in fact I
want to create a handler in kernel space,this handler should pass data to/from user space.Bu t it is not possible as I know from linux device drivers .So I want to create a user space handler.
API is not explanatory and doesnt have enough example about interrupt management,especially rtdm interrupt management as well.--- On Fri, 9/26/08, Ulrich Schwab <[email protected]> wrote:
From: Ulrich Schwab <[email protected]>
Subject: Re: [Xenomai-help]CONFIG_XENO_OPT_NATIVE_INTR?
To: [email protected]
Cc: [email protected]
Date: Friday, September 26, 2008, 2:06 PMQuoted 3 lines · egemen kaleli
Hello,
When I want to call
"
rt_intr_create(&intr_timer,"MyIrq",irq,I_NOAUTOENA)"Quoted 1 line
function it returns -ENOSYS.CONFIG_XENO_OPT_NATIVE_INTR is off in
default.I
Quoted 2 lines
want to make it on.How can I do it?Which files and directories should I look for?Any help will be greatly appreciated.
Usually You only need to handle irqs in a driver, and a xenomai driver is doing it with the RTDM skin
and the system call:rtdm_irq_request(see the API docs) This is the reasonCONFIG_XENO_OPT_NATIVE_INTRis off by
default
If You want to switch it on anyway, You can do it in the kernel config page for the native skin.Ulrich Schwab
A message that is not in the archive (sent off-list or not yet received): [email protected]
This is also an option for any driver to use shared mem. If this makes sense in Your application, only You can tell.
Issues might be race conditions in concurrent access to the shared mem. They should therefore be protected by a mutex or semaphore.
Ulrich
Quoted 90 lines · egemen kaleli
yes I see but I want to handle interrupt in driver side.So it is not possible a user program to call any function.I have come up with a idea that is using rtdm memory map so that interrupt handler can pass a clock tick to the user space. Do you see a disadvantage if I use mmap?
--- On Mon, 9/29/08, Ulrich Schwab <[email protected]> wrote:
From: Ulrich Schwab <[email protected]>
Subject: Re: Fw: Re: [Xenomai-help]CONFIG_XENO_OPT_NATIVE_INTR?
To: [email protected]
Cc: [email protected]
Date: Monday, September 29, 2008, 2:00 PMFirst of all, please do not drop the list from receiving Your mails, this way nobody else can answer Your questions.
One example is:
A user program can callrt_dev_ioctlon the open file descriptor associated with Your timer hardware.
In the driver ioctl entry - which is executed in the context of the user task - it can block and be unblocked
from within the isr when the desired condition is met.Ulrich
Quoted 10 lines · egemen kaleli
--- On Sun, 9/28/08, egemen kaleli <[email protected]> wrote:
From: egemen kaleli <[email protected]>
Subject: Re: [Xenomai-help]CONFIG_XENO_OPT_NATIVE_INTR?
To: [email protected]
Date: Sunday, September 28, 2008, 12:31 PMİf I want to handle a hardware timer interrupt in kernel module ,how can
I
Quoted 18 lines
make user space aware of happening an interrupt so that I can pass a clock tick to user program from kernel driver through timer interrupt.
--- On Fri, 9/26/08, egemen kaleli <[email protected]> wrote:
From: egemen kaleli <[email protected]>
Subject: Re: [Xenomai-help]CONFIG_XENO_OPT_NATIVE_INTR?
To: "Ulrich Schwab" <[email protected]>
Date: Friday, September 26, 2008, 5:13 PMthanks for help.Can I use rtdm interrupt handler in user space?in fact I
want to create a handler in kernel space,this handler should pass data to/from user space.Bu t it is not possible as I know from linux device drivers .So I want to create a user space handler.
API is not explanatory and doesnt have enough example about interrupt management,especially rtdm interrupt management as well.--- On Fri, 9/26/08, Ulrich Schwab <[email protected]>
Quoted 8 lines · wrote:
From: Ulrich Schwab <[email protected]>
Subject: Re: [Xenomai-help]CONFIG_XENO_OPT_NATIVE_INTR?
To: [email protected]
Cc: [email protected]
Date: Friday, September 26, 2008, 2:06 PMOn Fri, Sep 26, 2008 at 2:15 AM, egemen kaleli <[email protected]>
Quoted 4 lines · wrote:
Quoted 3 lines
Hello,
When I want to call
"
rt_intr_create(&intr_timer,"MyIrq",irq,I_NOAUTOENA)"Quoted 3 lines
Quoted 1 line
function it returns -ENOSYS.CONFIG_XENO_OPT_NATIVE_INTR is off in
default.I
Quoted 1 line
want to make it on.How can I do it?Which files and directories should
I
Quoted 14 lines
Quoted 1 line
look for?Any help will be greatly appreciated.
Usually You only need to handle irqs in a driver, and a xenomai driver is doing it with the RTDM skin
and the system call:rtdm_irq_request(see the API docs) This is the reasonCONFIG_XENO_OPT_NATIVE_INTRis off by
default
If You want to switch it on anyway, You can do it in the kernel config page for the native skin.Ulrich Schwab