RTDM without mmap
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!
Quoted 3 lines · Josh Zhao
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.
Thanks.
So you mean I have to invoke ipipe api directly in xenomai?
2008/4/11, Hannes Mayer <[email protected]>:
Quoted 18 lines
Quoted 3 lines · Josh Zhao
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 RTDMstructure.
http://www.captain.at/adeos-ipipe-device-driver-mmap.php :-)
Cheers,
Hannes._______________________________________________
Adeos-main mailing list
[email protected]
https://mail.gna.org/listinfo/adeos-main
Quoted 2 lines · Josh Zhao
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.
Quoted 3 lines · Josh Zhao
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.
Quoted 13 lines
2008/4/11, Hannes Mayer <[email protected]>:
Quoted 11 lines
Quoted 4 lines · Josh Zhao
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 RTDMstructure.
http://www.captain.at/adeos-ipipe-device-driver-mmap.php :-)
Regards,
Johan
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 asrt_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 <[email protected]>:
Quoted 34 lines
Quoted 4 lines · Josh Zhao
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 <[email protected]>:
Quoted 10 lines
Quoted 10 lines
Quoted 5 lines · Josh Zhao
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 RTDMQuoted 7 lines
Quoted 6 lines
structure.
http://www.captain.at/adeos-ipipe-device-driver-mmap.php :-)
Regards,
Johan