Home
last modified time | relevance | path

Searched refs:data_fd (Results 1 - 21 of 21) sorted by relevance

/kernel/linux/linux-6.6/tools/testing/selftests/user_events/
H A Dftrace_test.c204 int data_fd; in FIXTURE() local
216 self->data_fd = open(data_file, O_RDWR); in FIXTURE_SETUP()
217 ASSERT_NE(-1, self->data_fd); in FIXTURE_SETUP()
226 close(self->data_fd); in FIXTURE_TEARDOWN()
252 ASSERT_EQ(0, ioctl(self->data_fd, DIAG_IOCSREG, &reg)); in TEST_F()
256 ASSERT_EQ(-1, ioctl(self->data_fd, DIAG_IOCSREG, &reg)); in TEST_F()
261 ASSERT_EQ(0, ioctl(self->data_fd, DIAG_IOCSREG, &reg)); in TEST_F()
267 ASSERT_EQ(-1, ioctl(self->data_fd, DIAG_IOCSREG, &reg)); in TEST_F()
284 ASSERT_EQ(-1, ioctl(self->data_fd, DIAG_IOCSDEL, "__test_event")); in TEST_F()
288 ASSERT_EQ(0, ioctl(self->data_fd, DIAG_IOCSUNRE in TEST_F()
[all...]
H A Dperf_test.c112 int data_fd; in FIXTURE() local
120 self->data_fd = open(data_file, O_RDWR); in FIXTURE_SETUP()
121 ASSERT_NE(-1, self->data_fd); in FIXTURE_SETUP()
127 close(self->data_fd); in FIXTURE_TEARDOWN()
149 ASSERT_EQ(0, ioctl(self->data_fd, DIAG_IOCSREG, &reg)); in TEST_F()
181 ASSERT_NE(-1, write(self->data_fd, &event, sizeof(event))); in TEST_F()
213 ASSERT_EQ(0, ioctl(self->data_fd, DIAG_IOCSREG, &reg)); in TEST_F()
239 ASSERT_NE(-1, write(self->data_fd, &reg.write_index, in TEST_F()
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/prog_tests/
H A Dtailcalls.c223 int err, map_fd, prog_fd, main_fd, data_fd, i, val; in test_tailcall_count() local
276 data_fd = bpf_map__fd(data_map); in test_tailcall_count()
277 if (CHECK_FAIL(data_fd < 0)) 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()
358 if (CHECK_FAIL(data_fd < 0)) in test_tailcall_4()
378 err = bpf_map_update_elem(data_fd, &zero, &i, BPF_ANY); in test_tailcall_4()
388 err = bpf_map_update_elem(data_fd, &zero, &i, BPF_ANY); in test_tailcall_4()
409 int err, map_fd, prog_fd, main_fd, data_fd, in test_tailcall_5() local
583 int err, map_fd, prog_fd, main_fd, data_fd, i, val; test_tailcall_bpf2bpf_2() local
757 int err, map_fd, prog_fd, main_fd, data_fd, i; test_tailcall_bpf2bpf_4() local
842 int err, map_fd, prog_fd, main_fd, data_fd, i, val; test_tailcall_bpf2bpf_6() local
[all...]
/kernel/linux/linux-6.6/samples/user_events/
H A Dexample.c41 int data_fd, write; in main() local
45 data_fd = open(data_file, O_RDWR); in main()
47 if (event_reg(data_fd, "test u32 count", &write, &enabled) == -1) in main()
62 writev(data_fd, (const struct iovec *)io, 2); in main()
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/
H A Dtailcalls.c227 int err, map_fd, prog_fd, main_fd, data_fd, i, val; in test_tailcall_3() local
277 data_fd = bpf_map__fd(data_map); in test_tailcall_3()
282 err = bpf_map_lookup_elem(data_fd, &i, &val); in test_tailcall_3()
305 int err, map_fd, prog_fd, main_fd, data_fd, i; in test_tailcall_4() local
339 data_fd = bpf_map__fd(data_map); in test_tailcall_4()
360 err = bpf_map_update_elem(data_fd, &zero, &i, BPF_ANY); in test_tailcall_4()
371 err = bpf_map_update_elem(data_fd, &zero, &i, BPF_ANY); in test_tailcall_4()
393 int err, map_fd, prog_fd, main_fd, data_fd, i, key[] = { 1111, 1234, 5678 }; in test_tailcall_5() local
427 data_fd = bpf_map__fd(data_map); in test_tailcall_5()
448 err = bpf_map_update_elem(data_fd, in test_tailcall_5()
565 int err, map_fd, prog_fd, main_fd, data_fd, i, val; test_tailcall_bpf2bpf_2() local
733 int err, map_fd, prog_fd, main_fd, data_fd, i, val; test_tailcall_bpf2bpf_4() local
[all...]
/kernel/linux/linux-5.10/arch/um/os-Linux/drivers/
H 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()
H A Detap.h14 int data_fd; member
H A Dethertap_kern.c29 epri->data_fd = -1; in etap_init()
/kernel/linux/linux-6.6/arch/um/os-Linux/drivers/
H 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()
H A Detap.h14 int data_fd; member
H A Dethertap_kern.c29 epri->data_fd = -1; in etap_init()
/third_party/nghttp2/src/
H A Dh2load_http1_session.cc206 if (config->data_fd == -1 || config->data_length == 0) { in submit_request()
264 while ((nread = pread(config->data_fd, buf.data(), buf.size(), in on_write()
303 return config->data_fd == -1 ? config->max_concurrent_streams : 1; in max_concurrent_streams()
H A Dnghttp.cc2538 int data_fd = -1; in run() local
2547 data_fd = 0; in run()
2551 data_fd = mkstemp(tempfn); in run()
2552 if (data_fd == -1) { in run()
2574 while ((wret = write(data_fd, buf.data(), rret)) == -1 && in run()
2583 if (fstat(data_fd, &data_stat) == -1) { in run()
2584 close(data_fd); in run()
2590 data_fd = open(config.datafile.c_str(), O_RDONLY | O_BINARY); in run()
2591 if (data_fd == -1) { in run()
2596 if (fstat(data_fd, in run()
[all...]
H A Dh2load_http2_session.cc134 while ((nread = pread(config->data_fd, buf, length, req_stat->data_offset)) == in file_read_callback()
263 config->data_fd == -1 ? nullptr : &prd, nullptr); in submit_request()
H A Dh2load.cc124 data_fd(-1), in Config()
148 if (data_fd != -1) { in ~Config()
149 close(data_fd); in ~Config()
2863 config.data_fd = open(datafile.c_str(), O_RDONLY | O_BINARY); in main()
2864 if (config.data_fd == -1) { in main()
2869 if (fstat(config.data_fd, &data_stat) == -1) { in main()
2875 config.data_fd, 0); in main()
3014 shared_nva.emplace_back(":method", config.data_fd == -1 ? "GET" : "POST"); in main()
3038 if (config.data_fd != -1) { in main()
H A Dh2load.h114 int data_fd; member
H A Dh2load_http3_session.cc107 config->data_fd == -1 ? nullptr : &dr, nullptr); in submit_request_internal()
/third_party/backends/frontend/
H A Dsaned.c1652 do_scan (Wire * w, int h, int data_fd) in do_scan() argument
1671 FD_SET (data_fd, &wr_mask); in do_scan()
1672 if (data_fd >= num_fds) in do_scan()
1673 num_fds = data_fd + 1; in do_scan()
1720 if (FD_ISSET (data_fd, &wr_set)) in do_scan()
1731 nwritten = write (data_fd, buf + writer, nbytes); in do_scan()
2074 int fd = -1, data_fd = -1; local
2128 data_fd = accept (fd, 0, 0);
2133 if (getpeername (data_fd, (struct sockaddr *) &ss, (socklen_t *) &len) < 0)
2157 close (data_fd);
[all...]
/kernel/linux/linux-6.6/drivers/net/can/usb/
H A Desd_usb.c148 u8 data_fd[CANFD_MAX_DLEN]; member
167 u8 data_fd[CANFD_MAX_DLEN]; member
444 memcpy(cfd->data, msg->rx.data_fd, len); in esd_usb_rx_can_msg()
873 memcpy(msg->tx.data_fd, cfd->data, cfd->len); in esd_usb_start_xmit()
/kernel/linux/linux-6.6/drivers/vfio/
H A Dvfio_main.c824 mig->data_fd = fd; in vfio_ioct_mig_return_fd()
845 offsetofend(struct vfio_device_feature_mig_state, data_fd); in vfio_ioctl_device_feature_mig_device_state()
881 mig.data_fd = -1; in vfio_ioctl_device_feature_mig_device_state()
/kernel/linux/linux-6.6/include/uapi/linux/
H A Dvfio.h1036 * with that session is returned in data_fd. The user is responsible to close
1043 * device, data_fd will be -1.
1047 __s32 data_fd; member
1127 * new data_fd. The migration driver may perform actions such as enabling
1155 * and will return a new data_fd. The data stream fed into the data_fd should

Completed in 27 milliseconds