Lines Matching refs:memfd
253 static int check_memfd_seals(struct file *memfd) in check_memfd_seals() argument
257 if (!memfd) in check_memfd_seals()
260 if (!shmem_file(memfd) && !is_file_hugepages(memfd)) in check_memfd_seals()
263 seals = memfd_fcntl(memfd, F_GET_SEALS, 0); in check_memfd_seals()
300 struct file *memfd = NULL; in udmabuf_create() local
340 memfd = fget(list[i].memfd); in udmabuf_create()
341 ret = check_memfd_seals(memfd); in udmabuf_create()
353 ret = memfd_pin_folios(memfd, list[i].offset, end, in udmabuf_create()
386 fput(memfd); in udmabuf_create()
387 memfd = NULL; in udmabuf_create()
398 if (memfd) in udmabuf_create()
399 fput(memfd); in udmabuf_create()
419 list.memfd = create.memfd; in udmabuf_ioctl_create()