Lines Matching refs:file
328 void vma_set_file(struct vm_area_struct *vma, struct file *file) in vma_set_file() argument
331 get_file(file); in vma_set_file()
332 swap(vma->vm_file, file); in vma_set_file()
333 fput(file); in vma_set_file()
565 unsigned long vm_mmap_pgoff(struct file *file, unsigned long addr, in vm_mmap_pgoff() argument
574 ret = security_mmap_file(file, prot, flag); in vm_mmap_pgoff()
576 ret = fsnotify_mmap_perm(file, prot, pgoff >> PAGE_SHIFT, len); in vm_mmap_pgoff()
580 ret = do_mmap(file, addr, len, prot, flag, 0, pgoff, &populate, in vm_mmap_pgoff()
607 unsigned long vm_mmap(struct file *file, unsigned long addr, in vm_mmap() argument
616 return vm_mmap_pgoff(file, addr, len, prot, flag, offset >> PAGE_SHIFT); in vm_mmap()
1162 int compat_vma_mmap_prepare(struct file *file, struct vm_area_struct *vma) in compat_vma_mmap_prepare() argument
1167 err = file->f_op->mmap_prepare(vma_to_desc(vma, &desc)); in compat_vma_mmap_prepare()