Lines Matching defs:how
1213 struct open_how how = {
1219 if (how.flags & O_PATH)
1220 how.flags &= O_PATH_FLAGS;
1222 if (!WILL_CREATE(how.flags))
1223 how.mode = 0;
1224 return how;
1227 inline int build_open_flags(const struct open_how *how, struct open_flags *op)
1229 u64 flags = how->flags;
1257 if (how->resolve & ~VALID_RESOLVE_FLAGS)
1261 if ((how->resolve & RESOLVE_BENEATH) && (how->resolve & RESOLVE_IN_ROOT))
1266 if (how->mode & ~S_IALLUGO)
1268 op->mode = how->mode | S_IFREG;
1270 if (how->mode != 0)
1362 if (how->resolve & RESOLVE_NO_XDEV)
1364 if (how->resolve & RESOLVE_NO_MAGICLINKS)
1366 if (how->resolve & RESOLVE_NO_SYMLINKS)
1368 if (how->resolve & RESOLVE_BENEATH)
1370 if (how->resolve & RESOLVE_IN_ROOT)
1372 if (how->resolve & RESOLVE_CACHED) {
1397 struct open_how how = build_open_how(flags, mode);
1398 int err = build_open_flags(&how, &op);
1426 struct open_how how = build_open_how(flags, mode);
1427 int err = build_open_flags(&how, &op);
1435 struct open_how *how)
1438 int err = build_open_flags(how, &op);
1443 return FD_ADD(how->flags, do_file_open(dfd, name, &op));
1448 struct open_how how = build_open_how(flags, mode);
1449 return do_sys_openat2(dfd, filename, &how);
1469 struct open_how __user *, how, size_t, usize)
1482 err = copy_struct_from_user(&tmp, sizeof(tmp), how, usize);