Lines Matching defs:file

13 #include <linux/file.h>
35 static int setfl(int fd, struct file * filp, unsigned long arg)
41 * O_APPEND cannot be cleared if the file is marked as append-only
42 * and the file is open for write.
87 static void f_modown(struct file *filp, struct pid *pid, enum pid_type type,
105 void __f_setown(struct file *filp, struct pid *pid, enum pid_type type,
113 int f_setown(struct file *filp, unsigned long arg, int force)
144 void f_delown(struct file *filp)
149 pid_t f_getown(struct file *filp)
165 static int f_setown_ex(struct file *filp, unsigned long arg)
205 static int f_getown_ex(struct file *filp, unsigned long arg)
245 static int f_getowner_uids(struct file *filp, unsigned long arg)
263 static int f_getowner_uids(struct file *filp, unsigned long arg)
284 static long fcntl_rw_hint(struct file *file, unsigned int cmd,
287 struct inode *inode = file_inode(file);
294 h = file_write_hint(file);
305 spin_lock(&file->f_lock);
306 file->f_write_hint = hint;
307 spin_unlock(&file->f_lock);
331 struct file *filp)
461 if (!f.file)
464 if (unlikely(f.file->f_mode & FMODE_PATH)) {
469 err = security_file_fcntl(f.file, cmd, arg);
471 err = do_fcntl(fd, cmd, arg, f.file);
488 if (!f.file)
491 if (unlikely(f.file->f_mode & FMODE_PATH)) {
496 err = security_file_fcntl(f.file, cmd, arg);
506 err = fcntl_getlk64(f.file, cmd, &flock);
517 err = fcntl_setlk64(fd, f.file, cmd, &flock);
520 err = do_fcntl(fd, cmd, arg, f.file);
625 if (!f.file)
628 if (unlikely(f.file->f_mode & FMODE_PATH)) {
633 err = security_file_fcntl(f.file, cmd, arg);
642 err = fcntl_getlk(f.file, convert_fcntl_cmd(cmd), &flock);
654 err = fcntl_getlk(f.file, convert_fcntl_cmd(cmd), &flock);
663 err = fcntl_setlk(fd, f.file, convert_fcntl_cmd(cmd), &flock);
672 err = fcntl_setlk(fd, f.file, convert_fcntl_cmd(cmd), &flock);
675 err = do_fcntl(fd, cmd, arg, f.file);
879 int fasync_remove_entry(struct file *filp, struct fasync_struct **fapp)
927 struct fasync_struct *fasync_insert_entry(int fd, struct file *filp, struct fasync_struct **fapp, struct fasync_struct *new)
961 static int fasync_add_entry(int fd, struct file *filp, struct fasync_struct **fapp)
986 * to set up the fasync queue, and for regular files by the file
990 int fasync_helper(int fd, struct file * filp, int on, struct fasync_struct **fapp)