Help with heap managment
Hi everyone,
Using the native skin, I have two heaps that I create in a kernel module using rt_heap_create. They are of type H_SHARED. I can see these in the /proc file system. When I cat these files I get...
bash-2.05b# cat /proc/xenomai/registry/native/heaps/header
type=shared:size=8192:used=8192
bash-2.05b# cat /proc/xenomai/registry/native/heaps/uframe type=shared:size=538624:used=536576
so I know they exist.
Now, in my user space code, I am trying to use these shared memory segments by first calling rt_heap_bind to get the uniform descriptor to use in a subsequent rt_heap_alloc call, but the bind fails with an errorcode of -2 which doesn't map to the return codes listed in the documentation.
Any clues?
Am I using the correct calling sequence from user space?
-Randy Smith
Software Engineer
ImageMap, Inc.
Randy learns to make device nodes for rtheap and rtpXX. Had to use strace -f to see that it was failing to open /dev/rtheap. After these are in place problem goes away.
Quoted 28 lines · Randy Smith
Hi everyone,
Using the native skin, I have two heaps that I create in a kernel module using
rt_heap_create. They are of typeH_SHARED. I can see these in the /proc file system. When I cat these files I get...bash-2.05b# cat
/proc/xenomai/registry/native/heaps/headertype=shared:size=8192:used=8192
bash-2.05b# cat/proc/xenomai/registry/native/heaps/uframetype=shared:size=538624:used=536576so I know they exist.
Now, in my user space code, I am trying to use these shared memory segments by first calling
rt_heap_bindto get the uniform descriptor to use in a subsequentrt_heap_alloccall, but the bind fails with an errorcode of -2 which doesn't map to the return codes listed in the documentation.Any clues?
Am I using the correct calling sequence from user space?
-Randy Smith
Software Engineer
ImageMap, Inc._______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help