19911f3a06a9e6f0dcd5bbb9f2f24702b2e17ee6

It often happens that the WLAN driver needs to allocate some pool of structures to handle bursty operations. The traditional approach is to statically allocate the maximum number of structures that we want to be able to handle concurrently. This has the significant down side of requiring manual tuning for every hardware combination for optimal behavior, and wasting large amounts of memory during non-burst periods. Add a new flexible, segmented memory allocator in QDF to help address such scenarios. A small static buffer segment is used to service the vast majority of operations, while additional segments are dynamically allocated as needed to meet demand. Critically, these additional segments are freed when not in use to reduce memory consumption. The result is a self-tuning buffer that combines most of the benefits of pure dynamic allocation with most of the benefits of pure static allocation. Change-Id: I5c27ecce72a450826494b5d13d6c9fdebda650a6 CRs-Fixed: 2224534
This is CNSS WLAN Host Driver for products starting from iHelium
Descrição
Linguagens
C
98.7%
C++
0.9%
Makefile
0.3%
Starlark
0.1%