Home
last modified time | relevance | path

Searched refs:src_fd (Results 1 – 14 of 14) sorted by relevance

/linux-6.15/fs/hfs/
H A Dcatalog.c304 dst_fd = src_fd; in hfs_cat_move()
310 err = hfs_bmap_reserve(src_fd.tree, 2 * src_fd.tree->depth); in hfs_cat_move()
316 err = hfs_brec_find(&src_fd); in hfs_cat_move()
319 if (src_fd.entrylength > sizeof(entry) || src_fd.entrylength < 0) { in hfs_cat_move()
324 hfs_bnode_read(src_fd.bnode, &entry, src_fd.entryoffset, in hfs_cat_move()
325 src_fd.entrylength); in hfs_cat_move()
345 err = hfs_brec_find(&src_fd); in hfs_cat_move()
348 err = hfs_brec_remove(&src_fd); in hfs_cat_move()
361 err = hfs_brec_find(&src_fd); in hfs_cat_move()
364 err = hfs_brec_remove(&src_fd); in hfs_cat_move()
[all …]
/linux-6.15/fs/hfsplus/
H A Dcatalog.c439 struct hfs_find_data src_fd, dst_fd; in hfsplus_rename_cat() local
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()
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()
508 err = hfs_brec_remove(&src_fd); in hfsplus_rename_cat()
521 type = hfs_bnode_read_u16(src_fd.bnode, src_fd.entryoffset); in hfsplus_rename_cat()
522 err = hfs_brec_remove(&src_fd); in hfsplus_rename_cat()
[all …]
/linux-6.15/tools/objtool/
H A Dbuiltin-check.c191 int dst_fd, src_fd; in copy_file() local
195 src_fd = open(src, O_RDONLY); in copy_file()
196 if (src_fd == -1) { in copy_file()
207 if (fstat(src_fd, &stat) == -1) { in copy_file()
218 copied = sendfile(dst_fd, src_fd, &offset, to_copy); in copy_file()
226 close(src_fd); in copy_file()
/linux-6.15/tools/testing/selftests/bpf/prog_tests/
H A Dtc_redirect.c1116 static int tun_relay_loop(int src_fd, int target_fd) in tun_relay_loop() argument
1127 FD_SET(src_fd, &rfds); in tun_relay_loop()
1130 if (select(1 + MAX(src_fd, target_fd), &rfds, NULL, NULL, NULL) < 0) { in tun_relay_loop()
1135 direction = FD_ISSET(src_fd, &rfds) ? SRC_TO_TARGET : TARGET_TO_SRC; in tun_relay_loop()
1143 nwrite = write(direction == SRC_TO_TARGET ? target_fd : src_fd, buf, nread); in tun_relay_loop()
1159 int src_fd, target_fd = -1; in test_tc_redirect_peer_l3() local
1173 src_fd = tun_open("tun_src"); in test_tc_redirect_peer_l3()
1174 if (!ASSERT_GE(src_fd, 0, "tun_open tun_src")) in test_tc_redirect_peer_l3()
1192 exit(tun_relay_loop(src_fd, target_fd)); in test_tc_redirect_peer_l3()
1254 if (src_fd >= 0) in test_tc_redirect_peer_l3()
[all …]
H A Dsockmap_basic.c63 int err, src_fd, dst_fd; in compare_cookies() local
65 src_fd = bpf_map__fd(src); in compare_cookies()
71 err = bpf_map_lookup_elem(src_fd, &i, &src_cookie); in compare_cookies()
286 int err, len, src_fd, iter_fd; in test_sockmap_copy() local
316 src_fd = bpf_map__fd(src); in test_sockmap_copy()
323 err = bpf_map_update_elem(src_fd, &i, &sock_fd[i], BPF_NOEXIST); in test_sockmap_copy()
328 linfo.map.map_fd = src_fd; in test_sockmap_copy()
/linux-6.15/io_uring/
H A Dmsg_ring.c28 u32 src_fd; member
143 if (msg->src_fd || msg->flags & ~IORING_MSG_RING_FLAGS_PASS) in __io_msg_ring_data()
184 node = io_rsrc_node_lookup(&ctx->file_table.data, msg->src_fd); in io_msg_grab_file()
289 msg->src_fd = READ_ONCE(sqe->addr3); in __io_msg_ring_prep()
H A Drsrc.c1277 file = io_uring_register_get_file(buf.src_fd, registered_src); in io_register_clone_buffers()
/linux-6.15/tools/include/uapi/linux/
H A Dfs.h55 __s64 src_fd; member
/linux-6.15/tools/perf/trace/beauty/include/uapi/linux/
H A Dfs.h64 __s64 src_fd; member
/linux-6.15/include/uapi/linux/
H A Dfs.h64 __s64 src_fd; member
H A Dio_uring.h773 __u32 src_fd; member
H A Dbtrfs.h605 __s64 src_fd; member
/linux-6.15/tools/testing/selftests/landlock/
H A Dfs_test.c1982 int dst_fd, src_fd; in copy_file() local
1990 src_fd = open(src_path, O_RDONLY | O_CLOEXEC); in copy_file()
1991 ASSERT_LE(0, src_fd) in copy_file()
1995 ASSERT_EQ(0, fstat(src_fd, &statbuf)); in copy_file()
1997 sendfile(dst_fd, src_fd, 0, statbuf.st_size)); in copy_file()
1998 ASSERT_EQ(0, close(src_fd)); in copy_file()
/linux-6.15/fs/
H A Dioctl.c258 return ioctl_file_clone(file, args.src_fd, args.src_offset, in ioctl_file_clone_range()