• Home
  • Raw
  • Download

Lines Matching refs:flag

1480 int may_open(struct path *path, int acc_mode, int flag)  in may_open()  argument
1501 flag &= ~O_TRUNC; in may_open()
1506 flag &= ~O_TRUNC; in may_open()
1516 if ((flag & FMODE_WRITE) && !(flag & O_APPEND)) in may_open()
1518 if (flag & O_TRUNC) in may_open()
1523 if (flag & O_NOATIME) in may_open()
1530 error = break_lease(inode, flag); in may_open()
1534 if (flag & O_TRUNC) { in may_open()
1557 if (flag & FMODE_WRITE) in may_open()
1569 int flag, int mode) in __open_namei_create() argument
1587 return may_open(&nd->path, 0, flag & ~O_TRUNC); in __open_namei_create()
1607 static inline int open_to_namei_flags(int flag) in open_to_namei_flags() argument
1609 if ((flag+1) & O_ACCMODE) in open_to_namei_flags()
1610 flag++; in open_to_namei_flags()
1611 return flag; in open_to_namei_flags()
1614 static int open_will_write_to_fs(int flag, struct inode *inode) in open_will_write_to_fs() argument
1622 return (flag & O_TRUNC); in open_will_write_to_fs()
1640 int flag = open_to_namei_flags(open_flag); in do_filp_open() local
1642 acc_mode = MAY_OPEN | ACC_MODE(flag); in do_filp_open()
1645 if (flag & O_TRUNC) in do_filp_open()
1650 if (flag & O_APPEND) in do_filp_open()
1656 if (!(flag & O_CREAT)) { in do_filp_open()
1657 error = path_lookup_open(dfd, pathname, lookup_flags(flag), in do_filp_open()
1658 &nd, flag); in do_filp_open()
1685 nd.intent.open.flags = flag; in do_filp_open()
1690 if (flag & O_EXCL) in do_filp_open()
1720 error = __open_namei_create(&nd, &path, flag, mode); in do_filp_open()
1737 if (flag & O_EXCL) in do_filp_open()
1742 if (flag & O_NOFOLLOW) in do_filp_open()
1767 will_write = open_will_write_to_fs(flag, nd.path.dentry->d_inode); in do_filp_open()
1773 error = may_open(&nd.path, acc_mode, flag); in do_filp_open()
1802 if (flag & O_NOFOLLOW) in do_filp_open()
2294 SYSCALL_DEFINE3(unlinkat, int, dfd, const char __user *, pathname, int, flag) in SYSCALL_DEFINE3() argument
2296 if ((flag & ~AT_REMOVEDIR) != 0) in SYSCALL_DEFINE3()
2299 if (flag & AT_REMOVEDIR) in SYSCALL_DEFINE3()