[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [rtl] RTAI and RTLinux
On Thu, Sep 07, 2000 at 06:58:48AM +0200, Paolo Mantegazza wrote:
> yodaiken@fsmlabs.com wrote:
> - ..... do we want to bet how long will it take to see a real time
> memory manager in RTL?
There is no such thing as a dynamic real time memory manager.
It's been some years since RTL has been available and we have
many times had this silly discussion.
The code for a simple version is trivial.
Step 1: write some module code:
In Linux init:
ask for a soft RTL interrupt
install a handler
handler:
read from request queue (could be a fifo)
v = kmalloc( requested.space)
*requested.result = v;
pthread_wakeup_np(requested.thread);
Step 2: write some RTL thread code.
In rtl periodic thread;
queue request.
pthread_kill(pthread_linux(),kmalloc_irq);
while( !request.result)
pthread_wait_np();
Step3 : receive Nobel Prize.
--
---------------------------------------------------------
Victor Yodaiken
Finite State Machine Labs: The RTLinux Company.
www.fsmlabs.com www.rtlinux.com