Does the function malloc() uses the real malloc or the wrap one in heapobj_pkg_init_private().

孙世龙 sunshilong369 at gmail.com
Tue Apr 7 11:13:47 CEST 2020


The source code url is
https://gitlab.denx.de/Xenomai/xenomai/-/blob/v3.1/lib/copperplate/
heapobj-heapmem.c  line:107

In the source code listed above, function heapobj_pkg_init_private()  calls
malloc().
I hope to know whether it calls the wrapper function or
the real malloc function which provides by the glibc?

How could I distinguish a function directs to the wrapper function or
the real one which provides by the glibc?

Thanks a lot. Looking forward to your replay.


More information about the Xenomai mailing list