mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
memory: update link and explanation of munmap() on hugepages
This commit is contained in:
parent
7860c38bfe
commit
f500cfa1e6
1 changed files with 5 additions and 1 deletions
|
@ -147,7 +147,11 @@ static void * memory_hugepage_alloc(struct memtype *m, size_t len, size_t alignm
|
|||
|
||||
static int memory_hugepage_free(struct memtype *m, void *ptr, size_t len)
|
||||
{
|
||||
len = ALIGN(len, HUGEPAGESIZE); /* ugly see: https://lkml.org/lkml/2015/3/27/171 */
|
||||
/** We must make sure that len is a multiple of the hugepage size
|
||||
*
|
||||
* See: https://lkml.org/lkml/2014/10/22/925
|
||||
*/
|
||||
len = ALIGN(len, HUGEPAGESIZE);
|
||||
|
||||
return munmap(ptr, len);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue