How could I allocate a huge memory in rtdm driver?
Richard Weinberger
richard.weinberger at gmail.com
Mon Apr 13 10:17:36 CEST 2020
On Mon, Apr 13, 2020 at 9:21 AM 孙世龙 via Xenomai <xenomai at xenomai.org> wrote:
>
> Hi,
> I am using xenomai 3.1.
>
> How could I allocate a huge memory which may be larger then 50MB in
> rtdm driver?
>
> I have tried rtdm_malloc function,but it returns NULL.
Depends on the use case, what exactly do you need?
Physical contiguous memory? Who should use it?
But 50MiB is a lot, in any context.
I'd allocate it in a non-realtime context with either vmalloc(), cma
or requesting
pages manually and then provide the allocated memory to my RT related code.
--
Thanks,
//richard
More information about the Xenomai
mailing list