Searched refs:enclave_fd (Results 1 – 2 of 2) sorted by relevance
/Linux-v6.6/samples/nitro_enclaves/ |
D | ne_ioctl_sample.c | 164 static int ne_create_vm(int ne_dev_fd, unsigned long *slot_uid, int *enclave_fd) in ne_create_vm() argument 167 *enclave_fd = ioctl(ne_dev_fd, NE_CREATE_VM, slot_uid); in ne_create_vm() 169 if (*enclave_fd < 0) { in ne_create_vm() 170 rc = *enclave_fd; in ne_create_vm() 198 int enclave_fd = *(int *)data; in ne_poll_enclave_fd() local 203 printf("Running from poll thread, enclave fd %d\n", enclave_fd); in ne_poll_enclave_fd() 205 fds[0].fd = enclave_fd; in ne_poll_enclave_fd() 285 static int ne_load_enclave_image(int enclave_fd, struct ne_user_mem_region ne_user_mem_regions[], in ne_load_enclave_image() argument 319 rc = ioctl(enclave_fd, NE_GET_IMAGE_LOAD_INFO, &image_load_info); 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 [all …]
|
/Linux-v6.6/drivers/virt/nitro_enclaves/ |
D | ne_misc_dev.c | 1595 int enclave_fd = -1; in ne_create_vm_ioctl() local 1654 enclave_fd = get_unused_fd_flags(O_CLOEXEC); in ne_create_vm_ioctl() 1655 if (enclave_fd < 0) { in ne_create_vm_ioctl() 1656 rc = enclave_fd; in ne_create_vm_ioctl() 1703 put_unused_fd(enclave_fd); in ne_create_vm_ioctl() 1708 fd_install(enclave_fd, enclave_file); in ne_create_vm_ioctl() 1710 return enclave_fd; in ne_create_vm_ioctl() 1715 put_unused_fd(enclave_fd); in ne_create_vm_ioctl() 1742 int enclave_fd = -1; in ne_ioctl() local 1747 enclave_fd = ne_create_vm_ioctl(ne_pci_dev, slot_uid); in ne_ioctl() [all …]
|