Home
last modified time | relevance | path

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

/openbmc/linux/samples/nitro_enclaves/
H A Dne_ioctl_sample.c302 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()
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()
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()
827 rc = ne_load_enclave_image(enclave_fd, ne_user_mem_regions, argv[1]); in main()
832 rc = ne_set_user_mem_region(enclave_fd, ne_user_mem_regions[i]); in main()
873 ne_free_mem_regions(ne_user_mem_regions); in main()
[all …]