Sat, 13 Jan 2001 Dingrong Yi wrote:
[...]
> real time  action itself  (through FIFO) . However, this leads to another
> issue, is it  possible to use list of  lists (i.e., pointer of pointers)
> with real time  linux?

Why shouldn't it be? Once you have pointers sorted out, the number of levels of
indirection doesn't matter. Just don't forget to perform any pointer relocation
on *all* pointers that need it! :-) If you can map the shared area into the same
virtual address range in all threads, there's nothing special you need to do.

One rather clean way of dealing with cases where you can *not* get your
favourite address range everywhere is to use offsets instead of pointers.
Either use relative offsets (disadvantage: cannot be copied without
relocation), or offsets from the start address of the shared area
(disadvantage: conversion to pointers require a third value; the base address).

I'm not really sure which method is best/fastest/easiest to use in the general
case, but I'll probably find out, as I'll need something like that for MAIA,
when sending events (queued in linked lists) and other stuff between tasks
through shared memory...


//David

..- M A I A -------------------------------------------------.
|      Multimedia Application Integration Architecture      |
| A Free/Open Source Plugin API for Professional Multimedia |
`----------------------> http://www.linuxaudiodev.com/maia -'
..- David Olofson -------------------------------------------.
| Audio Hacker - Open Source Advocate - Singer - Songwriter |
`--------------------------------------> [EMAIL PROTECTED] -'
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
---
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/

Reply via email to