Home
last modified time | relevance | path

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

/openbmc/linux/fs/hfs/
H A Dcatalog.c292 struct hfs_find_data src_fd, dst_fd; in hfs_cat_move() local
301 err = hfs_find_init(HFS_SB(sb)->cat_tree, &src_fd); in hfs_cat_move()
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()
315 hfs_cat_build_key(sb, src_fd.search_key, src_dir->i_ino, src_name); 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()
336 err = hfs_brec_insert(&dst_fd, &entry, src_fd.entrylength); in hfs_cat_move()
[all …]
/openbmc/linux/fs/hfsplus/
H A Dcatalog.c439 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 …]
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A Dsockmap_basic.c62 int err, src_fd, dst_fd; in compare_cookies() local
64 src_fd = bpf_map__fd(src); in compare_cookies()
70 err = bpf_map_lookup_elem(src_fd, &i, &src_cookie); in compare_cookies()
193 int err, len, src_fd, iter_fd; in test_sockmap_copy() local
223 src_fd = bpf_map__fd(src); in test_sockmap_copy()
230 err = bpf_map_update_elem(src_fd, &i, &sock_fd[i], BPF_NOEXIST); in test_sockmap_copy()
235 linfo.map.map_fd = src_fd; in test_sockmap_copy()
H A Dtc_redirect.c1054 static int tun_relay_loop(int src_fd, int target_fd) in tun_relay_loop() argument
1065 FD_SET(src_fd, &rfds); in tun_relay_loop()
1068 if (select(1 + MAX(src_fd, target_fd), &rfds, NULL, NULL, NULL) < 0) { in tun_relay_loop()
1073 direction = FD_ISSET(src_fd, &rfds) ? SRC_TO_TARGET : TARGET_TO_SRC; in tun_relay_loop()
1075 nread = read(direction == SRC_TO_TARGET ? src_fd : target_fd, buf, sizeof(buf)); in tun_relay_loop()
1081 nwrite = write(direction == SRC_TO_TARGET ? target_fd : src_fd, buf, nread); in tun_relay_loop()
1097 int src_fd, target_fd = -1; in test_tc_redirect_peer_l3() local
1111 src_fd = tun_open("tun_src"); in test_tc_redirect_peer_l3()
1112 if (!ASSERT_GE(src_fd, 0, "tun_open tun_src")) in test_tc_redirect_peer_l3()
1130 exit(tun_relay_loop(src_fd, target_fd)); in test_tc_redirect_peer_l3()
[all …]
/openbmc/linux/io_uring/
H A Dmsg_ring.c28 u32 src_fd; member
133 if (msg->src_fd || msg->flags & ~IORING_MSG_RING_FLAGS_PASS) in io_msg_ring_data()
165 int idx = msg->src_fd; in io_msg_grab_file()
260 msg->src_fd = READ_ONCE(sqe->addr3); in io_msg_ring_prep()
/openbmc/linux/tools/include/uapi/linux/
H A Dfs.h55 __s64 src_fd; member
/openbmc/linux/include/uapi/linux/
H A Dfs.h55 __s64 src_fd; member
H A Dbtrfs.h602 __s64 src_fd; member
/openbmc/linux/tools/testing/selftests/landlock/
H A Dfs_test.c1821 int dst_fd, src_fd; in copy_binary() local
1829 src_fd = open(BINARY_PATH, O_RDONLY | O_CLOEXEC); in copy_binary()
1830 ASSERT_LE(0, src_fd) in copy_binary()
1835 ASSERT_EQ(0, fstat(src_fd, &statbuf)); in copy_binary()
1837 sendfile(dst_fd, src_fd, 0, statbuf.st_size)); in copy_binary()
1838 ASSERT_EQ(0, close(src_fd)); in copy_binary()
/openbmc/linux/fs/
H A Dioctl.c259 return ioctl_file_clone(file, args.src_fd, args.src_offset, in ioctl_file_clone_range()
/openbmc/qemu/block/
H A Dtrace-events206 … int dst, int64_t dst_off, int64_t bytes, int flags, int64_t ret) "bs %p src_fd %d offset %"PRIu64…
/openbmc/openbmc/poky/meta/recipes-devtools/rust/files/
H A Drv32-cargo-rustix-0.38.28-fix.patch50 pub fn ioctl_ficlone<Fd: AsFd, SrcFd: AsFd>(fd: Fd, src_fd: SrcFd) -> io::Result<()> {