Home
last modified time | relevance | path

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

/linux/samples/nitro_enclaves/
H A Dne_ioctl_sample.c285 static int ne_load_enclave_image(int enclave_fd, struct ne_user_mem_region ne_user_mem_regions[], in ne_load_enclave_image() argument
302 enclave_memory_size += ne_user_mem_regions[i].memory_size; in ne_load_enclave_image()
364 size_t memory_size = ne_user_mem_regions[i].memory_size; in ne_load_enclave_image()
366 void *userspace_addr = ne_user_mem_regions[i].userspace_addr; in ne_load_enclave_image()
497 static void ne_free_mem_regions(struct ne_user_mem_region ne_user_mem_regions[]) in ne_free_mem_regions() argument
502 munmap(ne_user_mem_regions[i].userspace_addr, in ne_free_mem_regions()
503 ne_user_mem_regions[i].memory_size); in ne_free_mem_regions()
771 struct ne_user_mem_region ne_user_mem_regions[NE_DEFAULT_NR_MEM_REGIONS] = {}; in main() local
817 ne_user_mem_regions[i].memory_size = NE_MIN_MEM_REGION_SIZE; in main()
819 rc = ne_alloc_user_mem_region(&ne_user_mem_regions[i]); in main()
[all …]