Home
last modified time | relevance | path

Searched refs:ioctl (Results 1 – 25 of 1123) sorted by relevance

12345678910>>...45

/linux-6.12.1/tools/testing/selftests/powerpc/ptrace/
Dperf-hwbreak.c126 ioctl(fd[i], PERF_EVENT_IOC_RESET); in reset_fds()
134 ioctl(fd[i], PERF_EVENT_IOC_ENABLE); in enable_fds()
142 ioctl(fd[i], PERF_EVENT_IOC_DISABLE); in disable_fds()
255 ioctl(break_fd, PERF_EVENT_IOC_ENABLE); in runtestsingle()
268 ioctl(break_fd, PERF_EVENT_IOC_DISABLE); in runtestsingle()
317 ioctl(break_fd, PERF_EVENT_IOC_RESET); in runtest_dar_outside()
318 ioctl(break_fd, PERF_EVENT_IOC_ENABLE); in runtest_dar_outside()
321 ioctl(break_fd, PERF_EVENT_IOC_DISABLE); in runtest_dar_outside()
332 ioctl(break_fd, PERF_EVENT_IOC_RESET); in runtest_dar_outside()
333 ioctl(break_fd, PERF_EVENT_IOC_ENABLE); in runtest_dar_outside()
[all …]
/linux-6.12.1/Documentation/userspace-api/media/mediactl/
Drequest-func-ioctl.rst4 .. _request-func-ioctl:
7 request ioctl()
13 request-ioctl - Control a request file descriptor
20 #include <sys/ioctl.h>
22 ``int ioctl(int fd, int cmd, void *argp)``
31 The request ioctl command code as defined in the media.h header file, for
40 The :ref:`ioctl() <request-func-ioctl>` function manipulates request
43 The ioctl ``cmd`` code specifies the request function to be called. It
47 Macros and structures definitions specifying request ioctl commands and
48 their parameters are located in the media.h header file. All request ioctl
[all …]
Dmedia-func-ioctl.rst4 .. _media-func-ioctl:
7 media ioctl()
13 media-ioctl - Control a media device
20 #include <sys/ioctl.h>
22 ``int ioctl(int fd, int request, void *argp)``
31 Media ioctl request code as defined in the media.h header file, for
40 The :ref:`ioctl() <media-func-ioctl>` function manipulates media device
43 The ioctl ``request`` code specifies the media function to be called. It
47 Macros and structures definitions specifying media ioctl requests and
48 their parameters are located in the media.h header file. All media ioctl
[all …]
/linux-6.12.1/Documentation/userspace-api/media/v4l/
Dfunc-ioctl.rst4 .. _func-ioctl:
7 V4L2 ioctl()
13 v4l2-ioctl - Program a V4L2 device
20 #include <sys/ioctl.h>
22 ``int ioctl(int fd, int request, void *argp)``
31 V4L2 ioctl request code as defined in the ``videodev2.h`` header
40 The :ref:`ioctl() <func-ioctl>` function is used to program V4L2 devices. The
41 argument ``fd`` must be an open file descriptor. An ioctl ``request``
44 defines specifying V4L2 ioctl requests are located in the
47 All V4L2 ioctl requests, their respective function and parameters are
[all …]
/linux-6.12.1/tools/testing/selftests/rtc/
Drtctest.c49 rc = ioctl(self->fd, RTC_RD_TIME, &rtc_tm); in TEST_F()
98 rc = ioctl(self->fd, RTC_RD_TIME, &rtc_tm);
106 rc = ioctl(self->fd, RTC_RD_TIME, &rtc_tm);
134 rc = ioctl(self->fd, RTC_UIE_ON, 0);
150 rc = ioctl(self->fd, RTC_UIE_OFF, 0);
163 rc = ioctl(self->fd, RTC_UIE_ON, 0); in TEST_F()
189 rc = ioctl(self->fd, RTC_UIE_OFF, 0); in TEST_F()
205 rc = ioctl(self->fd, RTC_RD_TIME, &tm); in TEST_F()
211 rc = ioctl(self->fd, RTC_ALM_SET, &tm); in TEST_F()
218 rc = ioctl(self->fd, RTC_ALM_READ, &tm); in TEST_F()
[all …]
/linux-6.12.1/tools/perf/tests/
Dbp_signal.c76 ioctl(fd1, PERF_EVENT_IOC_DISABLE, 0); in sig_handler_2()
77 ioctl(fd2, PERF_EVENT_IOC_DISABLE, 0); in sig_handler_2()
78 ioctl(fd3, PERF_EVENT_IOC_DISABLE, 0); in sig_handler_2()
97 ioctl(fd1, PERF_EVENT_IOC_DISABLE, 0); in sig_handler()
98 ioctl(fd2, PERF_EVENT_IOC_DISABLE, 0); in sig_handler()
99 ioctl(fd3, PERF_EVENT_IOC_DISABLE, 0); in sig_handler()
136 ioctl(fd, PERF_EVENT_IOC_RESET, 0); in __event()
246 ioctl(fd1, PERF_EVENT_IOC_ENABLE, 0); in test__bp_signal()
247 ioctl(fd2, PERF_EVENT_IOC_ENABLE, 0); in test__bp_signal()
248 ioctl(fd3, PERF_EVENT_IOC_ENABLE, 0); in test__bp_signal()
[all …]
/linux-6.12.1/Documentation/driver-api/tty/
Dn_gsm.rst26 ``TIOCSETD`` ioctl.
28 #. Configure the mux using ``GSMIOC_GETCONF_EXT``/``GSMIOC_SETCONF_EXT`` ioctl if needed.
30 #. Configure the mux using ``GSMIOC_GETCONF``/``GSMIOC_SETCONF`` ioctl.
32 #. Configure DLCs using ``GSMIOC_GETCONF_DLCI``/``GSMIOC_SETCONF_DLCI`` ioctl for non-defaults.
69 ioctl(fd, TIOCSETD, &ldisc);
72 ioctl(fd, GSMIOC_GETCONF_EXT, &ce);
76 ioctl(fd, GSMIOC_SETCONF_EXT, &ce);
78 ioctl(fd, GSMIOC_GETCONF, &c);
86 ioctl(fd, GSMIOC_SETCONF, &c);
89 ioctl(fd, GSMIOC_GETCONF_DLCI, &dc);
[all …]
/linux-6.12.1/Documentation/userspace-api/media/cec/
Dcec-func-ioctl.rst4 .. _cec-func-ioctl:
7 cec ioctl()
13 cec-ioctl - Control a cec device
20 #include <sys/ioctl.h>
22 ``int ioctl(int fd, int request, void *argp)``
31 CEC ioctl request code as defined in the cec.h header file, for
40 The :c:func:`ioctl()` function manipulates cec device parameters. The
43 The ioctl ``request`` code specifies the cec function to be called. It
47 Macros and structures definitions specifying cec ioctl requests and
48 their parameters are located in the cec.h header file. All cec ioctl
[all …]
/linux-6.12.1/Documentation/userspace-api/ioctl/
Dcdrom.rst2 Summary of CDROM ioctl calls
9 This document attempts to describe the ioctl(2) calls supported by
13 ioctl values are listed in <linux/cdrom.h>. As of this writing, they
83 Unless otherwise specified, all ioctl calls return 0 on success
87 Unless otherwise specified, all ioctl calls return -1 and set
105 ioctl(fd, CDROMPAUSE, 0);
126 ioctl(fd, CDROMRESUME, 0);
151 ioctl(fd, CDROMPLAYMSF, &msf);
182 ioctl(fd, CDROMPLAYTRKIND, &ti);
211 ioctl(fd, CDROMREADTOCHDR, &header);
[all …]
/linux-6.12.1/Documentation/translations/zh_CN/dev-tools/
Dkcov.rst57 #include <sys/ioctl.h>
83 if (ioctl(fd, KCOV_INIT_TRACE, COVER_SIZE))
84 perror("ioctl"), exit(1);
91 if (ioctl(fd, KCOV_ENABLE, KCOV_TRACE_PC))
92 perror("ioctl"), exit(1);
93 /* 在调用 ioctl() 之后重置覆盖率。 */
104 if (ioctl(fd, KCOV_DISABLE, 0))
105 perror("ioctl"), exit(1);
171 if (ioctl(fd, KCOV_INIT_TRACE, COVER_SIZE))
172 perror("ioctl"), exit(1);
[all …]
/linux-6.12.1/drivers/scsi/esas2r/
Desas2r_ioctl.c71 void *ioctl; member
251 memcpy(esas2r_buffered_ioctl, bi->ioctl, bi->length); in handle_buffered_ioctl()
288 memcpy(bi->ioctl, esas2r_buffered_ioctl, bi->length); in handle_buffered_ioctl()
302 esas2r_sgc_init(sgc, a, rq, rq->vrq->ioctl.sge); in smp_ioctl_callback()
321 bi.ioctl = si; in handle_smp_ioctl()
350 struct atto_vda_ioctl_req *ioctl = &rq->vrq->ioctl; in csmi_ioctl_tunnel() local
355 esas2r_sgc_init(sgc, a, rq, rq->vrq->ioctl.sge); in csmi_ioctl_tunnel()
357 ioctl->csmi.ctrl_code = cpu_to_le32(ctrl_code); in csmi_ioctl_tunnel()
358 ioctl->csmi.target_id = cpu_to_le16(target_id); in csmi_ioctl_tunnel()
359 ioctl->csmi.lun = (u8)le32_to_cpu(rq->vrq->scsi.flags); in csmi_ioctl_tunnel()
[all …]
/linux-6.12.1/samples/acrn/
Dvm-sample.c40 ioctl(hsm_fd, ACRN_IOCTL_PAUSE_VM, vmid); in vm_exit()
41 ioctl(hsm_fd, ACRN_IOCTL_DESTROY_IOREQ_CLIENT, 0); in vm_exit()
64 ret = ioctl(hsm_fd, ACRN_IOCTL_CREATE_VM, &create_vm); in main()
75 ret = ioctl(hsm_fd, ACRN_IOCTL_SET_MEMSEG, &ram_map); in main()
93 ret = ioctl(hsm_fd, ACRN_IOCTL_SET_VCPU_REGS, &regs); in main()
97 ret = ioctl(hsm_fd, ACRN_IOCTL_CREATE_IOREQ_CLIENT, 0); in main()
101 ret = ioctl(hsm_fd, ACRN_IOCTL_START_VM, vmid); in main()
106 ret = ioctl(hsm_fd, ACRN_IOCTL_ATTACH_IOREQ_CLIENT, 0); in main()
122 ioctl(hsm_fd, ACRN_IOCTL_NOTIFY_REQUEST_FINISH, &notify); in main()
127 ret = ioctl(hsm_fd, ACRN_IOCTL_DESTROY_VM, NULL); in main()
/linux-6.12.1/drivers/gpu/drm/nouveau/nvif/
Dobject.c46 return client->driver->ioctl(client->object.priv, data, size, hack); in nvif_object_ioctl()
60 struct nvif_ioctl_v0 ioctl; in nvif_object_sclass_get() member
70 args->ioctl.version = 0; in nvif_object_sclass_get()
71 args->ioctl.type = NVIF_IOCTL_V0_SCLASS; in nvif_object_sclass_get()
104 struct nvif_ioctl_v0 ioctl; in nvif_object_mthd() member
121 args->ioctl.version = 0; in nvif_object_mthd()
122 args->ioctl.type = NVIF_IOCTL_V0_MTHD; in nvif_object_mthd()
138 struct nvif_ioctl_v0 ioctl; in nvif_object_unmap_handle() member
141 .ioctl.type = NVIF_IOCTL_V0_UNMAP, in nvif_object_unmap_handle()
152 struct nvif_ioctl_v0 ioctl; in nvif_object_map_handle() member
[all …]
/linux-6.12.1/tools/testing/selftests/iommu/
Diommufd.c81 EXPECT_ERRNO(EFAULT, ioctl(self->fd, IOMMU_DESTROY, NULL)); in TEST_F()
84 ioctl(self->fd, _IO(IOMMUFD_TYPE, IOMMUFD_CMD_BASE - 1), in TEST_F()
101 EXPECT_ERRNO(EINVAL, ioctl(self->fd, _ioctl, &cmd)); \ in TEST_F()
103 EXPECT_ERRNO(E2BIG, ioctl(self->fd, _ioctl, &cmd)); \ in TEST_F()
105 rc = ioctl(self->fd, _ioctl, &cmd); \ in TEST_F()
111 ioctl(self->fd, _ioctl, &cmd)); \ in TEST_F()
113 ASSERT_EQ(0, ioctl(self->fd, _ioctl, &cmd)); \ in TEST_F()
142 EXPECT_ERRNO(ENOENT, ioctl(self->fd, IOMMU_DESTROY, &cmd)); in TEST_F()
145 EXPECT_ERRNO(E2BIG, ioctl(self->fd, IOMMU_DESTROY, &cmd)); in TEST_F()
148 EXPECT_ERRNO(ENOENT, ioctl(self->fd, IOMMU_DESTROY, &cmd)); in TEST_F()
[all …]
/linux-6.12.1/tools/testing/selftests/kvm/s390x/
Ducontrol_test.c87 self->vm_fd = ioctl(self->kvm_fd, KVM_CREATE_VM, KVM_VM_S390_UCONTROL); in FIXTURE_SETUP()
94 self->vcpu_fd = ioctl(self->vm_fd, KVM_CREATE_VCPU, 0); in FIXTURE_SETUP()
97 self->kvm_run_size = ioctl(self->kvm_fd, KVM_GET_VCPU_MMAP_SIZE, NULL); in FIXTURE_SETUP()
130 rc = ioctl(self->vcpu_fd, KVM_S390_UCAS_MAP, &map); in FIXTURE_SETUP()
135 rc = ioctl(self->vcpu_fd, KVM_S390_VCPU_FAULT, self->base_gpa); in FIXTURE_SETUP()
168 rc = ioctl(self->vm_fd, KVM_GET_DEVICE_ATTR, &attr); in TEST_F()
173 rc = ioctl(self->vm_fd, KVM_SET_DEVICE_ATTR, &attr); in TEST_F()
183 rc = ioctl(self->vm_fd, KVM_GET_DIRTY_LOG, &dlog); in TEST_F()
201 vm_fd = ioctl(kvm_fd, KVM_CREATE_VM, KVM_VM_S390_UCONTROL); in TEST()
205 rc = ioctl(vm_fd, KVM_CHECK_EXTENSION, KVM_CAP_S390_HPAGE_1M); in TEST()
[all …]
/linux-6.12.1/Documentation/userspace-api/gpio/
Dchardev_v1.rst38 Lines are requested from the chip using either gpio-get-linehandle-ioctl.rst
40 gpio-get-lineevent-ioctl.rst and the resulting line event is used to monitor
54 Get Line Handle <gpio-get-linehandle-ioctl>
55 Get Line Event <gpio-get-lineevent-ioctl>
56 Get Chip Info <gpio-get-chipinfo-ioctl>
57 Get Line Info <gpio-get-lineinfo-ioctl>
58 Watch Line Info <gpio-get-lineinfo-watch-ioctl>
59 Unwatch Line Info <gpio-get-lineinfo-unwatch-ioctl>
67 Line handles are created by gpio-get-linehandle-ioctl.rst and provide
70 :c:type:`request.fd<gpiohandle_request>` by gpio-get-linehandle-ioctl.rst.
[all …]
/linux-6.12.1/tools/testing/selftests/drivers/s390x/uvdevice/
Dtest_uvdevice.c59 rc = ioctl(self->uv_fd, variant->ioctl_cmd, NULL); in TEST_F()
64 rc = ioctl(self->uv_fd, variant->ioctl_cmd, self->fault_page); in TEST_F()
75 rc = ioctl(self->uv_fd, variant->ioctl_cmd, &self->uvio_ioctl); in TEST_F()
81 rc = ioctl(self->uv_fd, variant->ioctl_cmd, &self->uvio_ioctl); in TEST_F()
96 rc = ioctl(self->uv_fd, variant->ioctl_cmd, &self->uvio_ioctl); in TEST_F()
102 rc = ioctl(self->uv_fd, variant->ioctl_cmd, &self->uvio_ioctl); in TEST_F()
109 rc = ioctl(self->uv_fd, variant->ioctl_cmd, &self->uvio_ioctl); in TEST_F()
116 rc = ioctl(self->uv_fd, variant->ioctl_cmd, &self->uvio_ioctl); in TEST_F()
122 rc = ioctl(self->uv_fd, variant->ioctl_cmd, &self->uvio_ioctl); in TEST_F()
139 rc = ioctl(self->uv_fd, cmds[i], &self->uvio_ioctl); in TEST_F()
[all …]
/linux-6.12.1/tools/testing/selftests/watchdog/
Dwatchdog-test.c58 ret = ioctl(fd, WDIOC_KEEPALIVE, &dummy); in keep_alive()
205 ret = ioctl(fd, WDIOC_GETSUPPORT, &info); in main()
219 ret = ioctl(fd, WDIOC_GETBOOTSTATUS, &flags); in main()
227 ret = ioctl(fd, WDIOC_SETOPTIONS, &flags); in main()
237 ret = ioctl(fd, WDIOC_SETOPTIONS, &flags); in main()
254 ret = ioctl(fd, WDIOC_GETSTATUS, &flags); in main()
259 ret = ioctl(fd, WDIOC_GETTEMP, &temperature); in main()
268 ret = ioctl(fd, WDIOC_SETTIMEOUT, &flags); in main()
278 ret = ioctl(fd, WDIOC_GETTIMEOUT, &flags); in main()
286 ret = ioctl(fd, WDIOC_SETPRETIMEOUT, &flags); in main()
[all …]
/linux-6.12.1/tools/testing/selftests/net/
Depoll_busy_poll.c73 ret = ioctl(self->invalid_fd, EPIOCGPARAMS, &self->params); in TEST_F()
83 ret = ioctl(self->invalid_fd, EPIOCSPARAMS, &self->params); in TEST_F()
140 ret = ioctl(self->fd, EPIOCGPARAMS, &self->params); in TEST_F()
157 ret = ioctl(self->fd, EPIOCGPARAMS, self->invalid_params); in TEST_F()
174 ret = ioctl(self->fd, EPIOCSPARAMS, &self->params); in TEST_F()
185 ret = ioctl(self->fd, EPIOCSPARAMS, &self->params); in TEST_F()
197 ret = ioctl(self->fd, EPIOCSPARAMS, &self->params); in TEST_F()
225 ret = ioctl(self->fd, EPIOCSPARAMS, &self->params); in TEST_F()
242 ret = ioctl(self->fd, EPIOCSPARAMS, &self->params); in TEST_F()
260 ret = ioctl(self->fd, EPIOCSPARAMS, self->invalid_params); in TEST_F()
[all …]
/linux-6.12.1/drivers/gpu/drm/nouveau/
Dnouveau_abi16.c713 nouveau_abi16_ioctl_mthd(struct nouveau_abi16 *abi16, struct nvif_ioctl_v0 *ioctl, u32 argc) in nouveau_abi16_ioctl_mthd() argument
720 if (ioctl->route || argc < sizeof(*args)) in nouveau_abi16_ioctl_mthd()
722 args = (void *)ioctl->data; in nouveau_abi16_ioctl_mthd()
725 obj = nouveau_abi16_obj_find(abi16, ioctl->object); in nouveau_abi16_ioctl_mthd()
743 nouveau_abi16_ioctl_del(struct nouveau_abi16 *abi16, struct nvif_ioctl_v0 *ioctl, u32 argc) in nouveau_abi16_ioctl_del() argument
747 if (ioctl->route || argc) in nouveau_abi16_ioctl_del()
750 obj = nouveau_abi16_obj_find(abi16, ioctl->object); in nouveau_abi16_ioctl_del()
761 nouveau_abi16_ioctl_new(struct nouveau_abi16 *abi16, struct nvif_ioctl_v0 *ioctl, u32 argc) in nouveau_abi16_ioctl_new() argument
770 args = (void *)ioctl->data; in nouveau_abi16_ioctl_new()
776 if (!ioctl->route) { in nouveau_abi16_ioctl_new()
[all …]
/linux-6.12.1/Documentation/input/
Duinput.rst73 ioctl(fd, UI_SET_EVBIT, EV_KEY);
74 ioctl(fd, UI_SET_KEYBIT, KEY_SPACE);
82 ioctl(fd, UI_DEV_SETUP, &usetup);
83 ioctl(fd, UI_DEV_CREATE);
106 ioctl(fd, UI_DEV_DESTROY);
132 ioctl(fd, UI_SET_EVBIT, EV_KEY);
133 ioctl(fd, UI_SET_KEYBIT, BTN_LEFT);
135 ioctl(fd, UI_SET_EVBIT, EV_REL);
136 ioctl(fd, UI_SET_RELBIT, REL_X);
137 ioctl(fd, UI_SET_RELBIT, REL_Y);
[all …]
/linux-6.12.1/tools/pci/
Dpcitest.c52 ret = ioctl(fd, PCITEST_BAR, test->barnum); in run_test()
61 ret = ioctl(fd, PCITEST_SET_IRQTYPE, test->irqtype); in run_test()
70 ret = ioctl(fd, PCITEST_GET_IRQTYPE); in run_test()
79 ret = ioctl(fd, PCITEST_CLEAR_IRQ); in run_test()
88 ret = ioctl(fd, PCITEST_LEGACY_IRQ, 0); in run_test()
97 ret = ioctl(fd, PCITEST_MSI, test->msinum); in run_test()
106 ret = ioctl(fd, PCITEST_MSIX, test->msixnum); in run_test()
118 ret = ioctl(fd, PCITEST_WRITE, &param); in run_test()
130 ret = ioctl(fd, PCITEST_READ, &param); in run_test()
142 ret = ioctl(fd, PCITEST_COPY, &param); in run_test()
/linux-6.12.1/tools/testing/selftests/x86/
Dsrso.c50 ioctl(rrets_fd, PERF_EVENT_IOC_RESET, 0); in main()
51 ioctl(mrrets_fd, PERF_EVENT_IOC_RESET, 0); in main()
53 ioctl(rrets_fd, PERF_EVENT_IOC_ENABLE, 0); in main()
54 ioctl(mrrets_fd, PERF_EVENT_IOC_ENABLE, 0); in main()
59 ioctl(rrets_fd, PERF_EVENT_IOC_DISABLE, 0); in main()
60 ioctl(mrrets_fd, PERF_EVENT_IOC_DISABLE, 0); in main()
/linux-6.12.1/Documentation/watchdog/
Dwatchdog-api.rst73 The ioctl API
76 All conforming drivers also support an ioctl API.
78 Pinging the watchdog using an ioctl:
80 All drivers that have an ioctl interface support at least one ioctl,
81 KEEPALIVE. This ioctl does exactly the same thing as a write to the
86 ioctl(fd, WDIOC_KEEPALIVE, 0);
90 the argument to the ioctl is ignored.
96 fly with the SETTIMEOUT ioctl, those drivers have the WDIOF_SETTIMEOUT
103 ioctl(fd, WDIOC_SETTIMEOUT, &timeout);
110 current timeout using the GETTIMEOUT ioctl::
[all …]
/linux-6.12.1/samples/hidraw/
Dhid-example.c69 res = ioctl(fd, HIDIOCGRDESCSIZE, &desc_size); in main()
77 res = ioctl(fd, HIDIOCGRDESC, &rpt_desc); in main()
88 res = ioctl(fd, HIDIOCGRAWNAME(256), buf); in main()
95 res = ioctl(fd, HIDIOCGRAWPHYS(256), buf); in main()
102 res = ioctl(fd, HIDIOCGRAWINFO, &info); in main()
118 res = ioctl(fd, HIDIOCSFEATURE(4), buf); in main()
126 res = ioctl(fd, HIDIOCGFEATURE(256), buf); in main()

12345678910>>...45