#
7c32e412 |
| 17-Nov-2018 |
Dustin Brown <dustinb@codeaurora.org> |
qcacmn: Add qdf_talloc APIs
Add APIs for t(ree) alloc(ated) memory management.
These APIs allocate memory like malloc, but track those allocations via a parent-child relationship, or tree. If the p
qcacmn: Add qdf_talloc APIs
Add APIs for t(ree) alloc(ated) memory management.
These APIs allocate memory like malloc, but track those allocations via a parent-child relationship, or tree. If the parent is freed while it still has children, a panic will be triggered. This effectively gives you the ability to limit the lifetime of an allocation by ensuring the child allocation lifetime will be strictly less than the parent allocation lifetime.
Change-Id: I6308c96061e125b2e5a9c424ec2d2298c1c503ab CRs-Fixed: 2359469
show more ...
|