adam at os.inf.tu-dresden.de
Sat Nov 1 10:34:01 CET 2014
On Thu Oct 30, 2014 at 11:00:22 -0400, teclis High Elf wrote:
> If I wanted to create a dummy irq that didn't actually exist in hardware
> but I could use for asynchronous notification between processes or between
> a hypervisor and a VM how would I do that in L4Re? What would the dummy
> entry look like in the .devs file?
You do not need any dummy IRQ entry or similar, nor IO or anything in
there. Creating an Irq object works like creating any other object:
L4::Cap<L4::Irq> irq = L4Re::chkcap(L4Re::Util::cap_alloc.alloc<L4::Irq>());
"IRQ creation failed");
In one thread you bind the IRQ to the thread, e.g.:
"Attaching IRQ failed");
Then you wait.
On the other side you call trigger():
There's an example in l4/pkg/examples/sys/map_irq which does this
between two tasks.
Adam adam at os.inf.tu-dresden.de
More information about the l4-hackers