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 On Mon, Sep 29, 2008 at 1:35 PM, egemen kaleli <[EMAIL PROTECTED]> wrote: > 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 PM > > 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 > On Sun, Sep 28, 2008 at 11:37 AM, egemen kaleli <[EMAIL PROTECTED]> > wrote: >> >> >> --- 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 PM >> >> thanks 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 PM >> >> On Fri, Sep 26, 2008 at 2:15 AM, egemen kaleli <[EMAIL PROTECTED]> > wrote: >>> Hello, >>> >>> When I want to call >> > "rt_intr_create(&intr_timer,"MyIrq",irq,I_NOAUTOENA)" >>> function it returns -ENOSYS.CONFIG_XENO_OPT_NATIVE_INTR is off in >> default.I >>> 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 reason CONFIG_XENO_OPT_NATIVE_INTR is 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 >> >> >> >> > > _______________________________________________ Xenomai-help mailing list [email protected] https://mail.gna.org/listinfo/xenomai-help
