Home
last modified time | relevance | path

Searched refs:oldf (Results 1 - 7 of 7) sorted by relevance

/kernel/linux/linux-6.6/io_uring/
H A Dfs.c53 const char __user *oldf, *newf; in io_renameat_prep() local
61 oldf = u64_to_user_ptr(READ_ONCE(sqe->addr)); in io_renameat_prep()
66 ren->oldpath = getname(oldf); in io_renameat_prep()
244 const char __user *oldf, *newf; in io_linkat_prep() local
253 oldf = u64_to_user_ptr(READ_ONCE(sqe->addr)); in io_linkat_prep()
257 lnk->oldpath = getname_uflags(oldf, lnk->flags); in io_linkat_prep()
/kernel/liteos_a/fs/include/fs/
H A Dfd_table.h73 struct files_struct *dup_fd(struct files_struct *oldf);
79 struct files_struct *create_files_snapshot(const struct files_struct *oldf);
/kernel/linux/linux-5.10/fs/
H A Dfile.c316 struct files_struct *dup_fd(struct files_struct *oldf, unsigned int max_fds, int *errorp) in dup_fd() argument
341 spin_lock(&oldf->file_lock); in dup_fd()
342 old_fdt = files_fdtable(oldf); in dup_fd()
349 spin_unlock(&oldf->file_lock); in dup_fd()
368 * Reacquire the oldf lock and a pointer to its fd table in dup_fd()
372 spin_lock(&oldf->file_lock); in dup_fd()
373 old_fdt = files_fdtable(oldf); in dup_fd()
397 spin_unlock(&oldf->file_lock); in dup_fd()
/kernel/linux/linux-6.6/fs/
H A Dfile.c316 struct files_struct *dup_fd(struct files_struct *oldf, unsigned int max_fds, int *errorp) in dup_fd() argument
341 spin_lock(&oldf->file_lock); in dup_fd()
342 old_fdt = files_fdtable(oldf); in dup_fd()
349 spin_unlock(&oldf->file_lock); in dup_fd()
368 * Reacquire the oldf lock and a pointer to its fd table in dup_fd()
372 spin_lock(&oldf->file_lock); in dup_fd()
373 old_fdt = files_fdtable(oldf); in dup_fd()
397 spin_unlock(&oldf->file_lock); in dup_fd()
/kernel/linux/linux-5.10/kernel/
H A Dfork.c1488 struct files_struct *oldf, *newf; in copy_files() local
1494 oldf = current->files; in copy_files()
1495 if (!oldf) in copy_files()
1499 atomic_inc(&oldf->count); in copy_files()
1503 newf = dup_fd(oldf, NR_OPEN_MAX, &error); in copy_files()
/kernel/linux/linux-6.6/kernel/
H A Dfork.c1783 struct files_struct *oldf, *newf; in copy_files() local
1789 oldf = current->files; in copy_files()
1790 if (!oldf) in copy_files()
1799 atomic_inc(&oldf->count); in copy_files()
1803 newf = dup_fd(oldf, NR_OPEN_MAX, &error); in copy_files()
/kernel/linux/linux-5.10/io_uring/
H A Dio_uring.c3845 const char __user *oldf, *newf; in io_renameat_prep() local
3855 oldf = u64_to_user_ptr(READ_ONCE(sqe->addr)); in io_renameat_prep()
3860 ren->oldpath = getname(oldf); in io_renameat_prep()

Completed in 27 milliseconds