Trying to understand talloc.h

Sylvain Munaut 246tnt at gmail.com
Sat Jun 30 19:52:43 UTC 2012


On Sat, Jun 30, 2012 at 3:22 PM, Akib Sayyed <akibsayyed at gmail.com> wrote:
> i am trying to understand talloc* functions. in layer23 app. i want to know
> what exact role they perform in these apps.
> its ok about allocating memory and freeing them but logically why they are
> used.

talloc is an external library borrowed from samba :

http://talloc.samba.org/talloc/doc/html/index.html

The code running on the target currently uses a "stub" implementation
that only returns fixed size block no matter what is asked. it works
because so far the only piece of dynamic allocation is the msgb_alloc
... But to run everything on the phone you'll need a proper target
compatible implementation

Cheers,

    Sylvain




More information about the baseband-devel mailing list