Lines Matching defs:how
1192 struct open_how how = {
1198 if (how.flags & O_PATH)
1199 how.flags &= O_PATH_FLAGS;
1201 if (!WILL_CREATE(how.flags))
1202 how.mode = 0;
1203 return how;
1206 inline int build_open_flags(const struct open_how *how, struct open_flags *op)
1208 u64 flags = how->flags;
1230 if (how->resolve & ~VALID_RESOLVE_FLAGS)
1234 if ((how->resolve & RESOLVE_BENEATH) && (how->resolve & RESOLVE_IN_ROOT))
1239 if (how->mode & ~S_IALLUGO)
1241 op->mode = how->mode | S_IFREG;
1243 if (how->mode != 0)
1312 if (how->resolve & RESOLVE_NO_XDEV)
1314 if (how->resolve & RESOLVE_NO_MAGICLINKS)
1316 if (how->resolve & RESOLVE_NO_SYMLINKS)
1318 if (how->resolve & RESOLVE_BENEATH)
1320 if (how->resolve & RESOLVE_IN_ROOT)
1322 if (how->resolve & RESOLVE_CACHED) {
1347 struct open_how how = build_open_how(flags, mode);
1348 int err = build_open_flags(&how, &op);
1382 struct open_how how = build_open_how(flags, mode);
1383 int err = build_open_flags(&how, &op);
1391 struct open_how *how)
1394 int fd = build_open_flags(how, &op);
1404 fd = get_unused_fd_flags(how->flags);
1420 struct open_how how = build_open_how(flags, mode);
1421 return do_sys_openat2(dfd, filename, &how);
1441 struct open_how __user *, how, size_t, usize)
1452 err = copy_struct_from_user(&tmp, sizeof(tmp), how, usize);