mirror of
https://github.com/apache/nuttx.git
synced 2026-06-08 10:32:47 +08:00
mm/gran: Allow run-time execution of gran_reserve
User can ask for specific granules to be allocated. This is useful for one thing only: when mmap() is called for a specific vaddr. The parameter itself is non-sensical, this is just to satisfy the POSIX standard.
This commit is contained in:
committed by
Petro Karashchenko
parent
5c1b518314
commit
458ff380e5
@@ -170,11 +170,12 @@ void gran_release(GRAN_HANDLE handle);
|
||||
* size - The size of the region to be reserved
|
||||
*
|
||||
* Returned Value:
|
||||
* None
|
||||
* On success, a non-NULL pointer to the allocated memory is returned;
|
||||
* NULL is returned on failure.
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
void gran_reserve(GRAN_HANDLE handle, uintptr_t start, size_t size);
|
||||
FAR void *gran_reserve(GRAN_HANDLE handle, uintptr_t start, size_t size);
|
||||
|
||||
/****************************************************************************
|
||||
* Name: gran_alloc
|
||||
|
||||
Reference in New Issue
Block a user