| /linux/fs/hfs/ ! |
| H A D | catalog.c | 415 struct hfs_find_data src_fd, dst_fd; in hfs_cat_move() local 424 err = hfs_find_init(HFS_SB(sb)->cat_tree, &src_fd); in hfs_cat_move() 427 dst_fd = src_fd; in hfs_cat_move() 433 err = hfs_bmap_reserve(src_fd.tree, 2 * src_fd.tree->depth); in hfs_cat_move() 438 hfs_cat_build_key(sb, src_fd.search_key, src_dir->i_ino, src_name); in hfs_cat_move() 439 err = hfs_brec_find(&src_fd); in hfs_cat_move() 442 if (src_fd.entrylength > sizeof(entry) || src_fd.entrylength < 0) { in hfs_cat_move() 447 hfs_bnode_read(src_fd.bnode, &entry, src_fd.entryoffset, in hfs_cat_move() 448 src_fd.entrylength); in hfs_cat_move() 459 err = hfs_brec_insert(&dst_fd, &entry, src_fd.entrylength); in hfs_cat_move() [all …]
|
| /linux/fs/hfsplus/ ! |
| H A D | catalog.c | 439 struct hfs_find_data src_fd, dst_fd; in hfsplus_rename_cat() local 447 err = hfs_find_init(HFSPLUS_SB(sb)->cat_tree, &src_fd); in hfsplus_rename_cat() 450 dst_fd = src_fd; in hfsplus_rename_cat() 456 err = hfs_bmap_reserve(src_fd.tree, 4 * (int)src_fd.tree->depth - 1); in hfsplus_rename_cat() 461 err = hfsplus_cat_build_key(sb, src_fd.search_key, in hfsplus_rename_cat() 466 err = hfs_brec_find(&src_fd, hfs_find_rec_by_key); in hfsplus_rename_cat() 469 if (src_fd.entrylength > sizeof(entry) || src_fd.entrylength < 0) { in hfsplus_rename_cat() 474 hfs_bnode_read(src_fd.bnode, &entry, src_fd.entryoffset, in hfsplus_rename_cat() 475 src_fd.entrylength); in hfsplus_rename_cat() 491 err = hfs_brec_insert(&dst_fd, &entry, src_fd.entrylength); in hfsplus_rename_cat() [all …]
|
| /linux/tools/objtool/ ! |
| H A D | builtin-check.c | 213 int dst_fd, src_fd; in copy_file() local 217 src_fd = open(src, O_RDONLY); in copy_file() 218 if (src_fd == -1) { in copy_file() 229 if (fstat(src_fd, &stat) == -1) { in copy_file() 240 copied = sendfile(dst_fd, src_fd, &offset, to_copy); in copy_file() 248 close(src_fd); in copy_file()
|
| /linux/tools/testing/selftests/bpf/prog_tests/ ! |
| H A D | tc_redirect.c | 1117 static int tun_relay_loop(int src_fd, int target_fd) in tun_relay_loop() argument 1128 FD_SET(src_fd, &rfds); in tun_relay_loop() 1131 if (select(1 + MAX(src_fd, target_fd), &rfds, NULL, NULL, NULL) < 0) { in tun_relay_loop() 1136 direction = FD_ISSET(src_fd, &rfds) ? SRC_TO_TARGET : TARGET_TO_SRC; in tun_relay_loop() 1138 nread = read(direction == SRC_TO_TARGET ? src_fd : target_fd, buf, sizeof(buf)); in tun_relay_loop() 1144 nwrite = write(direction == SRC_TO_TARGET ? target_fd : src_fd, buf, nread); in tun_relay_loop() 1160 int src_fd, target_fd = -1; in test_tc_redirect_peer_l3() local 1174 src_fd = tun_open("tun_src"); in test_tc_redirect_peer_l3() 1175 if (!ASSERT_GE(src_fd, 0, "tun_open tun_src")) in test_tc_redirect_peer_l3() 1193 exit(tun_relay_loop(src_fd, target_fd)); in test_tc_redirect_peer_l3() [all …]
|
| H A D | sockmap_basic.c | 73 int err, src_fd, dst_fd; in compare_cookies() local 75 src_fd = bpf_map__fd(src); in compare_cookies() 81 err = bpf_map_lookup_elem(src_fd, &i, &src_cookie); in compare_cookies() 296 int err, len, src_fd, iter_fd; in test_sockmap_copy() local 326 src_fd = bpf_map__fd(src); in test_sockmap_copy() 333 err = bpf_map_update_elem(src_fd, &i, &sock_fd[i], BPF_NOEXIST); in test_sockmap_copy() 338 linfo.map.map_fd = src_fd; in test_sockmap_copy()
|
| /linux/io_uring/ ! |
| H A D | msg_ring.c | 27 u32 src_fd; member 119 if (msg->src_fd || msg->flags & ~IORING_MSG_RING_FLAGS_PASS) in __io_msg_ring_data() 164 node = io_rsrc_node_lookup(&ctx->file_table.data, msg->src_fd); in io_msg_grab_file() 270 msg->src_fd = READ_ONCE(sqe->addr3); in __io_msg_ring_prep()
|
| H A D | rsrc.c | 1276 file = io_uring_register_get_file(buf.src_fd, registered_src); in io_register_clone_buffers()
|
| /linux/tools/include/uapi/linux/ ! |
| H A D | fs.h | 64 __s64 src_fd; member
|
| /linux/include/uapi/linux/ ! |
| H A D | fs.h | 75 __s64 src_fd; member
|
| H A D | io_uring.h | 842 __u32 src_fd; member
|
| H A D | btrfs.h | 606 __s64 src_fd; member
|
| /linux/tools/perf/trace/beauty/include/uapi/linux/ ! |
| H A D | fs.h | 75 __s64 src_fd; member
|
| /linux/fs/ ! |
| H A D | ioctl.c | 257 return ioctl_file_clone(file, args.src_fd, args.src_offset, in ioctl_file_clone_range()
|
| /linux/tools/testing/selftests/landlock/ ! |
| H A D | fs_test.c | 2022 int dst_fd, src_fd; in copy_file() local 2030 src_fd = open(src_path, O_RDONLY | O_CLOEXEC); in copy_file() 2031 ASSERT_LE(0, src_fd) in copy_file() 2035 ASSERT_EQ(0, fstat(src_fd, &statbuf)); in copy_file() 2037 sendfile(dst_fd, src_fd, 0, statbuf.st_size)); in copy_file() 2038 ASSERT_EQ(0, close(src_fd)); in copy_file()
|