Home
last modified time | relevance | path

Searched refs:alloc_area (Results 1 – 3 of 3) sorted by relevance

/Linux-v6.6/tools/testing/selftests/mm/
Duffd-common.c47 static int anon_allocate_area(void **alloc_area, bool is_src) in anon_allocate_area() argument
49 *alloc_area = mmap(NULL, nr_pages * page_size, PROT_READ | PROT_WRITE, in anon_allocate_area()
51 if (*alloc_area == MAP_FAILED) { in anon_allocate_area()
52 *alloc_area = NULL; in anon_allocate_area()
73 static int hugetlb_allocate_area(void **alloc_area, bool is_src) in hugetlb_allocate_area() argument
81 *alloc_area = mmap(NULL, size, PROT_READ | PROT_WRITE, in hugetlb_allocate_area()
85 if (*alloc_area == MAP_FAILED) { in hugetlb_allocate_area()
86 *alloc_area = NULL; in hugetlb_allocate_area()
123 static int shmem_allocate_area(void **alloc_area, bool is_src) in shmem_allocate_area() argument
140 *alloc_area = mmap(p, bytes, PROT_READ | PROT_WRITE, MAP_SHARED, in shmem_allocate_area()
[all …]
Duffd-common.h86 int (*allocate_area)(void **alloc_area, bool is_src);
/Linux-v6.6/drivers/md/
Ddm-snap-persistent.c170 static int alloc_area(struct pstore *ps) in alloc_area() function
331 r = alloc_area(ps); in read_header()
375 r = alloc_area(ps); in read_header()