Home
last modified time | relevance | path

Searched refs:cmd_fd (Results 1 – 6 of 6) sorted by relevance

/OK3568_Linux_fs/kernel/tools/testing/selftests/filesystems/incfs/
H A Dincfs_test.c324 int cmd_fd = open_commands_file(mnt_dir); in open_file_by_id() local
337 if (use_ioctl && ioctl(cmd_fd, INCFS_IOC_PERMIT_FILL, &permit_fill)) { in open_file_by_id()
352 close(cmd_fd); in open_file_by_id()
999 int cmd_fd = -1; in cant_touch_index_test() local
1011 cmd_fd = open_commands_file(mount_dir); in cant_touch_index_test()
1012 if (cmd_fd < 0) in cant_touch_index_test()
1028 err = emit_file(cmd_fd, ".index", file_name, &file_id, in cant_touch_index_test()
1035 err = emit_file(cmd_fd, NULL, file_name, &file_id, in cant_touch_index_test()
1068 close(cmd_fd); in cant_touch_index_test()
1085 close(cmd_fd); in cant_touch_index_test()
[all …]
H A Dutils.c198 int get_file_bmap(int cmd_fd, int ino, unsigned char *buf, int buf_size) in get_file_bmap() argument
227 int cmd_fd; in open_commands_file() local
231 cmd_fd = open(cmd_file, O_RDONLY | O_CLOEXEC); in open_commands_file()
233 if (cmd_fd < 0) in open_commands_file()
235 return cmd_fd; in open_commands_file()
H A Dincfs_perf.c186 int write_data(int cmd_fd, int dir_fd, const char *name, size_t size, int flags) in write_data() argument
216 if (ioctl(cmd_fd, INCFS_IOC_PERMIT_FILL, &permit_fill)) { in write_data()
494 static int load_hash_tree(int cmd_fd, int dir, const char *name, in load_hash_tree() argument
527 if (ioctl(cmd_fd, INCFS_IOC_PERMIT_FILL, &permit_fill)) { in load_hash_tree()
H A Dincfs_stress.c133 int write_data(int cmd_fd, int dir_fd, const char *name, size_t size) in write_data() argument
148 if (ioctl(cmd_fd, INCFS_IOC_PERMIT_FILL, &permit_fill)) { in write_data()
H A Dutils.h35 int get_file_bmap(int cmd_fd, int ino, unsigned char *buf, int buf_size);
/OK3568_Linux_fs/kernel/tools/testing/selftests/net/
H A Dipsec.c705 static int do_ping(int cmd_fd, char *buf, size_t buf_len, struct in_addr from, in do_ping() argument
723 write_msg(cmd_fd, &msg, 0); in do_ping()
726 read_msg(cmd_fd, &msg, 0); in do_ping()
1597 unsigned int nr, int cmd_fd, void *buf, struct xfrm_desc *desc) in child_serv() argument
1609 if (do_ping(cmd_fd, buf, page_size, src, true, 0, 0, udp_ping_send)) { in child_serv()
1617 write_msg(cmd_fd, &msg, 1); in child_serv()
1627 write_msg(cmd_fd, &msg, 1); in child_serv()
1634 if (do_ping(cmd_fd, buf, page_size, tunsrc, in child_serv()
1646 write_msg(cmd_fd, &msg, 1); in child_serv()
1657 write_msg(cmd_fd, &msg, 1); in child_serv()
[all …]