All of lore.kernel.org
 help / color / mirror / Atom feed
* [Adeos-main] RTDM without mmap
@ 2008-04-10 10:25 Josh Zhao
  2008-04-10 18:24 ` Hannes Mayer
  0 siblings, 1 reply; 6+ messages in thread
From: Josh Zhao @ 2008-04-10 10:25 UTC (permalink / raw)
  To: adeos-main

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

Hi all,
      I want to write mmap driver for spending up to exchange data between
kernel and user,but i havn't seen the mmap field in RTDM structure.
     1.   So can i access to physical address in user mode RT-TASK or in
Kernelmode RT-TASK?
     2.   Is the peformence of RT-TASK  running in kernel mode than in
user-mode?


 thanks!

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

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

* Re: [Adeos-main] RTDM without mmap
  2008-04-10 10:25 [Adeos-main] RTDM without mmap Josh Zhao
@ 2008-04-10 18:24 ` Hannes Mayer
  2008-04-11  1:14   ` [Xenomai-core] " Josh Zhao
  0 siblings, 1 reply; 6+ messages in thread
From: Hannes Mayer @ 2008-04-10 18:24 UTC (permalink / raw)
  To: adeos-main

Josh Zhao wrote:
> Hi all,
>       I want to write mmap driver for spending up to exchange data 
> between kernel and user,but i havn't seen the mmap field in RTDM structure.

http://www.captain.at/adeos-ipipe-device-driver-mmap.php :-)

Cheers,
Hannes.


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

* Re: [Xenomai-core] [Adeos-main] RTDM without mmap
  2008-04-10 18:24 ` Hannes Mayer
@ 2008-04-11  1:14   ` Josh Zhao
  2008-04-11  4:40     ` Hannes Mayer
  2008-04-11  6:13     ` [Xenomai-core] " Johan Borkhuis
  0 siblings, 2 replies; 6+ messages in thread
From: Josh Zhao @ 2008-04-11  1:14 UTC (permalink / raw)
  To: Hannes Mayer; +Cc: adeos-main, xenomai

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

Thanks.
   So you mean I have to invoke  ipipe api directly in xenomai?



2008/4/11, Hannes Mayer <h.mayer@domain.hid>:
>
> Josh Zhao wrote:
> > Hi all,
> >       I want to write mmap driver for spending up to exchange data
> > between kernel and user,but i havn't seen the mmap field in RTDM
> structure.
>
>
> http://www.captain.at/adeos-ipipe-device-driver-mmap.php :-)
>
> Cheers,
> Hannes.
>
> _______________________________________________
> Adeos-main mailing list
> Adeos-main@domain.hid
> https://mail.gna.org/listinfo/adeos-main
>

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

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

* Re: [Adeos-main] RTDM without mmap
  2008-04-11  1:14   ` [Xenomai-core] " Josh Zhao
@ 2008-04-11  4:40     ` Hannes Mayer
  2008-04-11  6:13     ` [Xenomai-core] " Johan Borkhuis
  1 sibling, 0 replies; 6+ messages in thread
From: Hannes Mayer @ 2008-04-11  4:40 UTC (permalink / raw)
  To: adeos-main

Josh Zhao wrote:
> Thanks. 
>    So you mean I have to invoke  ipipe api directly in xenomai?

No. You posted to the ADEOS list, so I gave an ADEOS
specific answer.

Cheers,
Hannes.


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

* Re: [Xenomai-core] [Adeos-main] RTDM without mmap
  2008-04-11  1:14   ` [Xenomai-core] " Josh Zhao
  2008-04-11  4:40     ` Hannes Mayer
@ 2008-04-11  6:13     ` Johan Borkhuis
  2008-04-11 10:23       ` Josh Zhao
  1 sibling, 1 reply; 6+ messages in thread
From: Johan Borkhuis @ 2008-04-11  6:13 UTC (permalink / raw)
  To: Josh Zhao; +Cc: adeos-main, xenomai

Josh Zhao wrote:
> Thanks.
>    So you mean I have to invoke  ipipe api directly in xenomai?
>   

No, if you look at the driver code you will see that this is a 
"standard" Linux driver, with the regular mmap handling, and not a 
Xenomai/RTDM driver. The only difference with a between this driver and 
a regular Linux driver is the fact that IPIPE is used for interrupt 
handling.

> 2008/4/11, Hannes Mayer <h.mayer@domain.hid>:
>   
>> Josh Zhao wrote:
>>     
>>> Hi all,
>>>       I want to write mmap driver for spending up to exchange data
>>> between kernel and user,but i havn't seen the mmap field in RTDM
>>>       
>> structure.
>>
>>
>> http://www.captain.at/adeos-ipipe-device-driver-mmap.php :-)
>>     

Regards,
    Johan


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

* Re: [Xenomai-core] [Adeos-main] RTDM without mmap
  2008-04-11  6:13     ` [Xenomai-core] " Johan Borkhuis
@ 2008-04-11 10:23       ` Josh Zhao
  0 siblings, 0 replies; 6+ messages in thread
From: Josh Zhao @ 2008-04-11 10:23 UTC (permalink / raw)
  To: Johan Borkhuis; +Cc: adeos-main, xenomai

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

Yes,you are right.
      The interrupt handler is taken over by ipipe, but other syscall is
still linux syscall.
   (1)  Does the RTDM implement the mmap feature or similar feature?


   I see that Xenomai can Write device drivers in user space , such as
rt_intr_create(&intr_desc,IRQ_NUMBER,I_AUTOENA);
  (2)  The irqhandler is in user space, how  interrupt (kernel mode)  can
invoke irqhandler(user mode ) ?

  (3) where is the kernel stack of  xenomai "primary" domain ?

   (4)   How to communicate between linux domain and xenomai domain in
inter-processes ?

   Thanks !



2008/4/11, Johan Borkhuis <j.borkhuis@domain.hid>:
>
> Josh Zhao wrote:
>
> > Thanks.
> >   So you mean I have to invoke  ipipe api directly in xenomai?
> >
> >
>
> No, if you look at the driver code you will see that this is a "standard"
> Linux driver, with the regular mmap handling, and not a Xenomai/RTDM driver.
> The only difference with a between this driver and a regular Linux driver is
> the fact that IPIPE is used for interrupt handling.
>
>  2008/4/11, Hannes Mayer <h.mayer@domain.hid>:
> >
> >
> > > Josh Zhao wrote:
> > >
> > >
> > > > Hi all,
> > > >      I want to write mmap driver for spending up to exchange data
> > > > between kernel and user,but i havn't seen the mmap field in RTDM
> > > >
> > > >
> > > structure.
> > >
> > >
> > > http://www.captain.at/adeos-ipipe-device-driver-mmap.php :-)
> > >
> > >
> >
> Regards,
>   Johan
>

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

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

end of thread, other threads:[~2008-04-11 10:23 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-10 10:25 [Adeos-main] RTDM without mmap Josh Zhao
2008-04-10 18:24 ` Hannes Mayer
2008-04-11  1:14   ` [Xenomai-core] " Josh Zhao
2008-04-11  4:40     ` Hannes Mayer
2008-04-11  6:13     ` [Xenomai-core] " Johan Borkhuis
2008-04-11 10:23       ` Josh Zhao

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.