Lines Matching refs:how

1104 	struct open_how how = {  in build_open_how()  local
1110 if (how.flags & O_PATH) in build_open_how()
1111 how.flags &= O_PATH_FLAGS; in build_open_how()
1113 if (!WILL_CREATE(how.flags)) in build_open_how()
1114 how.mode = 0; in build_open_how()
1115 return how; in build_open_how()
1118 inline int build_open_flags(const struct open_how *how, struct open_flags *op) in build_open_flags() argument
1120 u64 flags = how->flags; in build_open_flags()
1142 if (how->resolve & ~VALID_RESOLVE_FLAGS) in build_open_flags()
1146 if ((how->resolve & RESOLVE_BENEATH) && (how->resolve & RESOLVE_IN_ROOT)) in build_open_flags()
1151 if (how->mode & ~S_IALLUGO) in build_open_flags()
1153 op->mode = how->mode | S_IFREG; in build_open_flags()
1155 if (how->mode != 0) in build_open_flags()
1216 if (how->resolve & RESOLVE_NO_XDEV) in build_open_flags()
1218 if (how->resolve & RESOLVE_NO_MAGICLINKS) in build_open_flags()
1220 if (how->resolve & RESOLVE_NO_SYMLINKS) in build_open_flags()
1222 if (how->resolve & RESOLVE_BENEATH) in build_open_flags()
1224 if (how->resolve & RESOLVE_IN_ROOT) in build_open_flags()
1226 if (how->resolve & RESOLVE_CACHED) { in build_open_flags()
1251 struct open_how how = build_open_how(flags, mode); in file_open_name() local
1252 int err = build_open_flags(&how, &op); in file_open_name()
1286 struct open_how how = build_open_how(flags, mode); in file_open_root() local
1287 int err = build_open_flags(&how, &op); in file_open_root()
1295 struct open_how *how) in do_sys_openat2() argument
1298 int fd = build_open_flags(how, &op); in do_sys_openat2()
1308 fd = get_unused_fd_flags(how->flags); in do_sys_openat2()
1325 struct open_how how = build_open_how(flags, mode); in do_sys_open() local
1326 return do_sys_openat2(dfd, filename, &how); in do_sys_open()
1346 struct open_how __user *, how, size_t, usize) in SYSCALL_DEFINE4() argument
1357 err = copy_struct_from_user(&tmp, sizeof(tmp), how, usize); in SYSCALL_DEFINE4()