mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-30 18:57:19 +02:00
clarify parameter usage in tslf_create
This commit is contained in:
committed by
Guillaume Souchere
parent
7010314c4a
commit
ffcc115e8b
@ -806,7 +806,7 @@ void tlsf_remove_pool(tlsf_t tlsf, pool_t pool)
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
tlsf_t tlsf_create(void* mem, size_t bytes)
|
tlsf_t tlsf_create(void* mem, size_t max_bytes)
|
||||||
{
|
{
|
||||||
#if _DEBUG
|
#if _DEBUG
|
||||||
if (test_ffs_fls())
|
if (test_ffs_fls())
|
||||||
@ -822,7 +822,7 @@ tlsf_t tlsf_create(void* mem, size_t bytes)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
control_construct(tlsf_cast(control_t*, mem), bytes);
|
control_construct(tlsf_cast(control_t*, mem), max_bytes);
|
||||||
|
|
||||||
return tlsf_cast(tlsf_t, mem);
|
return tlsf_cast(tlsf_t, mem);
|
||||||
}
|
}
|
||||||
|
@ -80,7 +80,7 @@ typedef void* tlsf_t;
|
|||||||
typedef void* pool_t;
|
typedef void* pool_t;
|
||||||
|
|
||||||
/* Create/destroy a memory pool. */
|
/* Create/destroy a memory pool. */
|
||||||
tlsf_t tlsf_create(void* mem, size_t bytes);
|
tlsf_t tlsf_create(void* mem, size_t max_bytes);
|
||||||
tlsf_t tlsf_create_with_pool(void* mem, size_t pool_bytes, size_t max_bytes);
|
tlsf_t tlsf_create_with_pool(void* mem, size_t pool_bytes, size_t max_bytes);
|
||||||
pool_t tlsf_get_pool(tlsf_t tlsf);
|
pool_t tlsf_get_pool(tlsf_t tlsf);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user