* [Xenomai-help] pb sharing xeno heap data with std kernel module
@ 2007-09-05 7:25 Stéphane ANCELOT
2007-09-05 9:16 ` Philippe Gerum
0 siblings, 1 reply; 3+ messages in thread
From: Stéphane ANCELOT @ 2007-09-05 7:25 UTC (permalink / raw)
To: xenomai-help
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Xenomai-help] pb sharing xeno heap data with std kernel module
2007-09-05 7:25 [Xenomai-help] pb sharing xeno heap data with std kernel module Stéphane ANCELOT
@ 2007-09-05 9:16 ` Philippe Gerum
2007-09-10 6:36 ` Stéphane ANCELOT
0 siblings, 1 reply; 3+ messages in thread
From: Philippe Gerum @ 2007-09-05 9:16 UTC (permalink / raw)
To: Stéphane ANCELOT; +Cc: xenomai-help
On Wed, 2007-09-05 at 09:25 +0200, Stéphane ANCELOT wrote:
> 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.
> Best Regards
> Steph
>
>
> _______________________________________________
> Xenomai-help mailing list
> Xenomai-help@domain.hid
> https://mail.gna.org/listinfo/xenomai-help
--
Philippe.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Xenomai-help] pb sharing xeno heap data with std kernel module
2007-09-05 9:16 ` Philippe Gerum
@ 2007-09-10 6:36 ` Stéphane ANCELOT
0 siblings, 0 replies; 3+ messages in thread
From: Stéphane ANCELOT @ 2007-09-10 6:36 UTC (permalink / raw)
To: rpm; +Cc: xenomai-help
Philippe Gerum a écrit :
> On Wed, 2007-09-05 at 09:25 +0200, Stéphane ANCELOT wrote:
>> 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.
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.
>> Best Regards
>> Steph
>>
>>
>> _______________________________________________
>> Xenomai-help mailing list
>> Xenomai-help@domain.hid
>> https://mail.gna.org/listinfo/xenomai-help
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-09-10 6:36 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-05 7:25 [Xenomai-help] pb sharing xeno heap data with std kernel module Stéphane ANCELOT
2007-09-05 9:16 ` Philippe Gerum
2007-09-10 6:36 ` Stéphane ANCELOT
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.