Skip to contentSkip to conversation

pb sharing xeno heap data with std kernel module

Xenomai-help Stéphane ANCELOT 2 participants 3 messages Sep 5, 2007 – Sep 10, 2007

lore
Share & tools
lore
#0 lore raw

Hi,

I have setted up a shared heap between a kernel module and an user space app.

However another "std" kernel model would need a ptr to some data in it .

rt_heap are virtual adresses I suppose.

Is there a way to give a phys pointer to the other kernel module ?

Best Regards
Steph

#1 lore raw
Quoted 11 lines · Stéphane ANCELOT

Hi,

I have setted up a shared heap between a kernel module and an user space app.

However another "std" kernel model would need a ptr to some data in it .

rt_heap are virtual adresses I suppose.

Is there a way to give a phys pointer to the other kernel module ?

You should rather store offsets to data from the heap start address instead of pointers, and compose pointers using the (base, offset) pair when dereferencing data within this space.

Quoted 8 lines

Best Regards
Steph

_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Signature · 1 line
Philippe.
#2 lore raw
Quoted 8 lines · Philippe Gerum
Quoted 7 lines · Stéphane ANCELOT

Hi,

I have setted up a shared heap between a kernel module and an user space app.

However another "std" kernel model would need a ptr to some data in it .

Quoted 8 lines
Quoted 4 lines

rt_heap are virtual adresses I suppose.

Is there a way to give a phys pointer to the other kernel module ?

You should rather store offsets to data from the heap start address instead of pointers, and compose pointers using the (base, offset) pair when dereferencing data within this space.

Yes, I agree, I have already done this between the userspace and the first kernel module. However I have no easy possibility to break the second kernel module functions for compatibilitry reasons.

Quoted 8 lines
Quoted 8 lines

Best Regards
Steph

_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help