Home
last modified time | relevance | path

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

/openbmc/linux/samples/nitro_enclaves/
H A Dne_ioctl_sample.c148 struct ne_user_mem_region { struct
255 static int ne_alloc_user_mem_region(struct ne_user_mem_region *ne_user_mem_region) in ne_alloc_user_mem_region() argument
261 ne_user_mem_region->userspace_addr = mmap(NULL, ne_user_mem_region->memory_size, in ne_alloc_user_mem_region()
265 if (ne_user_mem_region->userspace_addr == MAP_FAILED) { in ne_alloc_user_mem_region()
285 static int ne_load_enclave_image(int enclave_fd, struct ne_user_mem_region ne_user_mem_regions[], in ne_load_enclave_image()
408 static int ne_set_user_mem_region(int enclave_fd, struct ne_user_mem_region ne_user_mem_region) in ne_set_user_mem_region() argument
412 .memory_size = ne_user_mem_region.memory_size, in ne_set_user_mem_region()
413 .userspace_addr = (__u64)ne_user_mem_region.userspace_addr, in ne_set_user_mem_region()
497 static void ne_free_mem_regions(struct ne_user_mem_region ne_user_mem_regions[]) in ne_free_mem_regions()
771 struct ne_user_mem_region ne_user_mem_regions[NE_DEFAULT_NR_MEM_REGIONS] = {}; in main()