/linux/fs/hfs/ |
A D | catalog.c | 304 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/fs/hfsplus/ |
A D | catalog.c | 439 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/tools/testing/selftests/kvm/x86_64/ |
A D | sev_migrate_tests.c | 72 static int __sev_migrate_from(int dst_fd, int src_fd) in __sev_migrate_from() argument 76 .args = { src_fd } in __sev_migrate_from() 83 static void sev_migrate_from(int dst_fd, int src_fd) in sev_migrate_from() argument 87 ret = __sev_migrate_from(dst_fd, src_fd); in sev_migrate_from() 209 static int __sev_mirror_create(int dst_fd, int src_fd) in __sev_mirror_create() argument 213 .args = { src_fd } in __sev_mirror_create() 220 static void sev_mirror_create(int dst_fd, int src_fd) in sev_mirror_create() argument 224 ret = __sev_mirror_create(dst_fd, src_fd); in sev_mirror_create()
|
/linux/tools/testing/selftests/bpf/prog_tests/ |
A D | tc_redirect.c | 607 static int tun_relay_loop(int src_fd, int target_fd) in tun_relay_loop() argument 618 FD_SET(src_fd, &rfds); in tun_relay_loop() 621 if (select(1 + MAX(src_fd, target_fd), &rfds, NULL, NULL, NULL) < 0) { in tun_relay_loop() 626 direction = FD_ISSET(src_fd, &rfds) ? SRC_TO_TARGET : TARGET_TO_SRC; in tun_relay_loop() 634 nwrite = write(direction == SRC_TO_TARGET ? target_fd : src_fd, buf, nread); in tun_relay_loop() 648 int src_fd, target_fd = -1; in test_tc_redirect_peer_l3() local 662 src_fd = tun_open("tun_src"); in test_tc_redirect_peer_l3() 663 if (!ASSERT_GE(src_fd, 0, "tun_open tun_src")) in test_tc_redirect_peer_l3() 681 exit(tun_relay_loop(src_fd, target_fd)); in test_tc_redirect_peer_l3() 753 if (src_fd >= 0) in test_tc_redirect_peer_l3() [all …]
|
A D | sockmap_basic.c | 56 int err, duration = 0, src_fd, dst_fd; in compare_cookies() local 58 src_fd = bpf_map__fd(src); in compare_cookies() 64 err = bpf_map_lookup_elem(src_fd, &i, &src_cookie); in compare_cookies() 202 int err, len, src_fd, iter_fd, duration = 0; in test_sockmap_copy() local 232 src_fd = bpf_map__fd(src); in test_sockmap_copy() 239 err = bpf_map_update_elem(src_fd, &i, &sock_fd[i], BPF_NOEXIST); in test_sockmap_copy() 244 linfo.map.map_fd = src_fd; in test_sockmap_copy()
|
/linux/tools/include/uapi/linux/ |
A D | fs.h | 55 __s64 src_fd; member
|
/linux/include/uapi/linux/ |
A D | fs.h | 55 __s64 src_fd; member
|
A D | btrfs.h | 567 __s64 src_fd; member
|
/linux/tools/testing/selftests/landlock/ |
A D | fs_test.c | 1500 int dst_fd, src_fd; in copy_binary() local 1508 src_fd = open(BINARY_PATH, O_RDONLY | O_CLOEXEC); in copy_binary() 1509 ASSERT_LE(0, src_fd) { in copy_binary() 1513 ASSERT_EQ(0, fstat(src_fd, &statbuf)); in copy_binary() 1514 ASSERT_EQ(statbuf.st_size, sendfile(dst_fd, src_fd, 0, in copy_binary() 1516 ASSERT_EQ(0, close(src_fd)); in copy_binary()
|
/linux/fs/ |
A D | ioctl.c | 262 return ioctl_file_clone(file, args.src_fd, args.src_offset, in ioctl_file_clone_range()
|