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:
Ville Juven
2022-11-17 13:39:17 +02:00
committed by Petro Karashchenko
parent 5c1b518314
commit 458ff380e5
5 changed files with 54 additions and 27 deletions
+3 -2
View File
@@ -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