Home
last modified time | relevance | path

Searched refs:data_fd (Results 1 – 9 of 9) sorted by relevance

/linux-6.3-rc2/tools/testing/selftests/user_events/
A Dftrace_test.c165 int data_fd; in FIXTURE() local
173 self->data_fd = open(data_file, O_RDWR); in FIXTURE_SETUP()
174 ASSERT_NE(-1, self->data_fd); in FIXTURE_SETUP()
181 close(self->data_fd); in FIXTURE_TEARDOWN()
203 ASSERT_EQ(0, ioctl(self->data_fd, DIAG_IOCSREG, &reg)); in TEST_F()
208 ASSERT_EQ(0, ioctl(self->data_fd, DIAG_IOCSREG, &reg)); in TEST_F()
235 close(self->data_fd); in TEST_F()
236 self->data_fd = open(data_file, O_RDWR); in TEST_F()
268 ASSERT_EQ(0, ioctl(self->data_fd, DIAG_IOCSREG, &reg)); in TEST_F()
317 ASSERT_EQ(0, ioctl(self->data_fd, DIAG_IOCSREG, &reg)); in TEST_F()
[all …]
A Dperf_test.c92 int data_fd; in FIXTURE() local
99 self->data_fd = open(data_file, O_RDWR); in FIXTURE_SETUP()
100 ASSERT_NE(-1, self->data_fd); in FIXTURE_SETUP()
105 close(self->data_fd); in FIXTURE_TEARDOWN()
126 ASSERT_EQ(0, ioctl(self->data_fd, DIAG_IOCSREG, &reg)); in TEST_F()
159 ASSERT_NE(-1, write(self->data_fd, &event, sizeof(event))); in TEST_F()
/linux-6.3-rc2/tools/testing/selftests/bpf/prog_tests/
A Dtailcalls.c276 data_fd = bpf_map__fd(data_map); in test_tailcall_count()
281 err = bpf_map_lookup_elem(data_fd, &i, &val); in test_tailcall_count()
319 int err, map_fd, prog_fd, main_fd, data_fd, i; in test_tailcall_4() local
357 data_fd = bpf_map__fd(data_map); in test_tailcall_4()
447 data_fd = bpf_map__fd(data_map); in test_tailcall_5()
636 data_fd = bpf_map__fd(data_map); in test_tailcall_bpf2bpf_2()
641 err = bpf_map_lookup_elem(data_fd, &i, &val); in test_tailcall_bpf2bpf_2()
810 data_fd = bpf_map__fd(data_map); in test_tailcall_bpf2bpf_4()
826 err = bpf_map_lookup_elem(data_fd, &i, &val); in test_tailcall_bpf2bpf_4()
874 data_fd = bpf_map__fd(obj->maps.bss); in test_tailcall_bpf2bpf_6()
[all …]
/linux-6.3-rc2/samples/user_events/
A Dexample.c64 int data_fd, write; in main() local
73 data_fd = open(data_file, O_RDWR); in main()
75 if (event_reg(data_fd, "test u32 count", &index, &mask, &write) == -1) in main()
91 writev(data_fd, (const struct iovec *)io, 2); in main()
/linux-6.3-rc2/arch/um/os-Linux/drivers/
A Dethertap_user.c182 pri->data_fd = data_fds[0]; in etap_open()
203 if (shutdown(pri->data_fd, SHUT_RDWR) < 0) in etap_close()
211 close(pri->data_fd); in etap_close()
212 pri->data_fd = -1; in etap_close()
A Detap.h14 int data_fd; member
A Dethertap_kern.c29 epri->data_fd = -1; in etap_init()
/linux-6.3-rc2/drivers/vfio/
A Dvfio_main.c753 mig->data_fd = fd; in vfio_ioct_mig_return_fd()
774 offsetofend(struct vfio_device_feature_mig_state, data_fd); in vfio_ioctl_device_feature_mig_device_state()
810 mig.data_fd = -1; in vfio_ioctl_device_feature_mig_device_state()
/linux-6.3-rc2/include/uapi/linux/
A Dvfio.h873 __s32 data_fd; member

Completed in 23 milliseconds