• Home
  • Raw
  • Download

Lines Matching refs:open

844 		struct io_open		open;  member
4323 if (!(req->open.how.flags & O_PATH) && force_o_largefile()) in __io_openat_prep()
4324 req->open.how.flags |= O_LARGEFILE; in __io_openat_prep()
4326 req->open.dfd = READ_ONCE(sqe->fd); in __io_openat_prep()
4328 req->open.filename = getname(fname); in __io_openat_prep()
4329 if (IS_ERR(req->open.filename)) { in __io_openat_prep()
4330 ret = PTR_ERR(req->open.filename); in __io_openat_prep()
4331 req->open.filename = NULL; in __io_openat_prep()
4335 req->open.file_slot = READ_ONCE(sqe->file_index); in __io_openat_prep()
4336 if (req->open.file_slot && (req->open.how.flags & O_CLOEXEC)) in __io_openat_prep()
4339 req->open.nofile = rlimit(RLIMIT_NOFILE); in __io_openat_prep()
4349 req->open.how = build_open_how(flags, mode); in io_openat_prep()
4364 ret = copy_struct_from_user(&req->open.how, sizeof(req->open.how), how, in io_openat2_prep()
4377 bool fixed = !!req->open.file_slot; in io_openat2()
4380 ret = build_open_flags(&req->open.how, &op); in io_openat2()
4384 resolve_nonblock = req->open.how.resolve & RESOLVE_CACHED; in io_openat2()
4392 if (req->open.how.flags & (O_TRUNC | O_CREAT | __O_TMPFILE)) in io_openat2()
4399 ret = __get_unused_fd_flags(req->open.how.flags, req->open.nofile); in io_openat2()
4404 file = do_filp_open(req->open.dfd, req->open.filename, &op); in io_openat2()
4430 req->open.file_slot - 1); in io_openat2()
4432 putname(req->open.filename); in io_openat2()
6870 if (req->open.filename) in io_clean_op()
6871 putname(req->open.filename); in io_clean_op()