From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: Date: Fri, 11 Apr 2008 09:14:18 +0800 From: "Josh Zhao" In-Reply-To: <47FE5B79.9080506@domain.hid> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_22937_1353717.1207876458526" References: <47FE5B79.9080506@domain.hid> Subject: Re: [Xenomai-core] [Adeos-main] RTDM without mmap List-Id: "Xenomai life and development \(bug reports, patches, discussions\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Hannes Mayer Cc: adeos-main@gna.org, xenomai@xenomai.org ------=_Part_22937_1353717.1207876458526 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Thanks. So you mean I have to invoke ipipe api directly in xenomai? 2008/4/11, Hannes Mayer : > > 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 > ------=_Part_22937_1353717.1207876458526 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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

------=_Part_22937_1353717.1207876458526-- From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <47FF019B.5070200@domain.hid> Date: Fri, 11 Apr 2008 08:13:47 +0200 From: Johan Borkhuis MIME-Version: 1.0 References: <47FE5B79.9080506@domain.hid> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Xenomai-core] [Adeos-main] RTDM without mmap List-Id: "Xenomai life and development \(bug reports, patches, discussions\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Josh Zhao Cc: adeos-main@gna.org, xenomai@xenomai.org 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 : > >> 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 From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: Date: Fri, 11 Apr 2008 18:23:46 +0800 From: "Josh Zhao" In-Reply-To: <47FF019B.5070200@domain.hid> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_24136_30248966.1207909426098" References: <47FE5B79.9080506@domain.hid> <47FF019B.5070200@domain.hid> Subject: Re: [Xenomai-core] [Adeos-main] RTDM without mmap List-Id: "Xenomai life and development \(bug reports, patches, discussions\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Johan Borkhuis Cc: adeos-main@gna.org, xenomai@xenomai.org ------=_Part_24136_30248966.1207909426098 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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 : > > 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 : > > > > > > > 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 > ------=_Part_24136_30248966.1207909426098 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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

------=_Part_24136_30248966.1207909426098-- From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: Date: Thu, 10 Apr 2008 18:25:17 +0800 From: "Josh Zhao" MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_10464_30749225.1207823117391" Subject: [Adeos-main] RTDM without mmap List-Id: General discussion about Adeos List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: adeos-main@gna.org ------=_Part_10464_30749225.1207823117391 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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! ------=_Part_10464_30749225.1207823117391 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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! ------=_Part_10464_30749225.1207823117391-- From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <47FE5B79.9080506@domain.hid> Date: Thu, 10 Apr 2008 20:24:57 +0200 From: Hannes Mayer MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Adeos-main] RTDM without mmap List-Id: General discussion about Adeos List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: adeos-main@gna.org 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. From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <47FEEBAF.2010209@domain.hid> Date: Fri, 11 Apr 2008 06:40:15 +0200 From: Hannes Mayer MIME-Version: 1.0 References: <47FE5B79.9080506@domain.hid> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Adeos-main] RTDM without mmap List-Id: General discussion about Adeos List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: adeos-main@gna.org 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.