Lines Matching defs:file
3 * VirtualBox Guest Shared Folders support: Regular file inode and file ops.
49 static int vboxsf_file_open(struct inode *inode, struct file *file)
66 if (file->f_flags & O_CREAT) {
72 if (file->f_flags & O_TRUNC)
78 if (file->f_flags & O_TRUNC)
82 switch (file->f_flags & O_ACCMODE) {
99 if (file->f_flags & O_APPEND)
105 err = vboxsf_create_at_dentry(file_dentry(file), ¶ms);
117 file->private_data = sf_handle;
141 static int vboxsf_file_release(struct inode *inode, struct file *file)
144 * When a file is closed on our (the guest) side, we want any subsequent
149 vboxsf_release_sf_handle(inode, file->private_data);
168 static int vboxsf_file_mmap(struct file *file, struct vm_area_struct *vma)
172 err = generic_file_mmap(file, vma);
187 * To avoid returning stale data when a file gets *opened* on our (the guest)
198 * file->f_path.dentry and the stat will then fail if the file was unlinked
228 static int vboxsf_readpage(struct file *file, struct page *page)
230 struct vboxsf_handle *sf_handle = file->private_data;
307 static int vboxsf_write_end(struct file *file, struct address_space *mapping,
312 struct vboxsf_handle *sf_handle = file->private_data;