Lines Matching defs:memfd
9 #include <linux/memfd.h>
293 static int check_memfd_seals(struct file *memfd)
297 if (!shmem_file(memfd) && !is_file_hugepages(memfd))
300 seals = memfd_fcntl(memfd, F_GET_SEALS, 0);
325 static long udmabuf_pin_folios(struct udmabuf *ubuf, struct file *memfd,
337 nr_folios = memfd_pin_folios(memfd, start, end, folios, pgcnt, &pgoff);
418 struct file *memfd = fget(list[i].memfd);
420 if (!memfd) {
429 inode_lock_shared(file_inode(memfd));
430 ret = check_memfd_seals(memfd);
434 ret = udmabuf_pin_folios(ubuf, memfd, list[i].offset,
437 inode_unlock_shared(file_inode(memfd));
438 fput(memfd);
482 list.memfd = create.memfd;