Skip to contentSkip to conversation

rt_heap_bind error -2

Xenomai-core 郭宇铮 2 participants 2 messages Dec 1, 2005

lore
Share & tools
lore

郭宇铮

author
#0 lore raw

Hi, I'm using xenomai instead of fusion.
When I bind a heap in user space which is created by a kernel module, the return value is -2 which I don't know what it means for it is not one of several values explained by the document.
This program runned well with fusion 0.9.
My kernel is 2.6.13 patched with ipipe.
Can anybody shed light on it?

And there's another strange error. In an ISR, printk must be called or the interrupt can't be cleared. So now I add an empty printk to every ISR.

Thanks.

#1 lore raw
Quoted 7 lines · 郭宇铮

Hi, I'm using xenomai instead of fusion.
When I bind a heap in user space which is created by a kernel module, the return value is -2 which I don't know what it means for it is not one of several values explained by the document.
This program runned well with fusion 0.9.
My kernel is 2.6.13 patched with ipipe.
Can anybody shed light on it?

Does /dev/rtheap still exist? Maybe something during your update has killed it.

Quoted 4 lines

And there's another strange error. In an ISR, printk must be called or the interrupt can't be cleared. So now I add an empty printk to every ISR.

What do you mean by "cleared"? May a snippet of the ISR would help here to explain what you do.

Jan

PS: The question better fits to the help mailing list where other users can also benefit from your Q&As.

Signature · 6 lines
Dipl.-Ing. Jan Kiszka

Institute for Systems Engineering, Real-Time Systems Group (RTS)
Appelstraße 9A, D-30167 Hannover
phone +49 511 762-3974 / fax +49 511 762-4012
http://www.rts.uni-hannover.de