| /linux-6.15/tools/testing/selftests/powerpc/ptrace/ |
| H A D | perf-hwbreak.c | 126 ioctl(fd[i], PERF_EVENT_IOC_RESET); in reset_fds() 423 ioctl(fd1, PERF_EVENT_IOC_RESET); in test_process_multi_diff_addr() 424 ioctl(fd2, PERF_EVENT_IOC_RESET); in test_process_multi_diff_addr() 468 ioctl(fd1, PERF_EVENT_IOC_RESET); in test_process_multi_same_addr() 469 ioctl(fd2, PERF_EVENT_IOC_RESET); in test_process_multi_same_addr() 513 ioctl(fd1, PERF_EVENT_IOC_RESET); in test_process_multi_diff_addr_ro_wo() 514 ioctl(fd2, PERF_EVENT_IOC_RESET); in test_process_multi_diff_addr_ro_wo() 558 ioctl(fd1, PERF_EVENT_IOC_RESET); in test_process_multi_same_addr_ro_wo() 559 ioctl(fd2, PERF_EVENT_IOC_RESET); in test_process_multi_same_addr_ro_wo() 789 ioctl(fd, PERF_EVENT_IOC_RESET); in runtest_unaligned_512bytes() [all …]
|
| /linux-6.15/tools/testing/selftests/drivers/ntsync/ |
| H A D | ntsync.c | 23 ret = ioctl(sem, NTSYNC_IOC_SEM_READ, &args); in read_sem_state() 40 return ioctl(sem, NTSYNC_IOC_SEM_RELEASE, count); in release_sem() 49 ret = ioctl(mutex, NTSYNC_IOC_MUTEX_READ, &args); in read_mutex_state() 71 ret = ioctl(mutex, NTSYNC_IOC_MUTEX_UNLOCK, &args); in unlock_mutex() 82 ret = ioctl(event, NTSYNC_IOC_EVENT_READ, &args); in read_event_state() 112 ret = ioctl(fd, request, &args); in wait_objs() 155 sem = ioctl(fd, NTSYNC_IOC_CREATE_SEM, &sem_args); in TEST() 161 sem = ioctl(fd, NTSYNC_IOC_CREATE_SEM, &sem_args); in TEST() 298 ret = ioctl(mutex, NTSYNC_IOC_MUTEX_KILL, &owner); in TEST() 303 ret = ioctl(mutex, NTSYNC_IOC_MUTEX_KILL, &owner); in TEST() [all …]
|
| /linux-6.15/Documentation/userspace-api/media/v4l/ |
| H A D | func-ioctl.rst | 4 .. _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.15/Documentation/userspace-api/media/mediactl/ |
| H A D | request-func-ioctl.rst | 4 .. _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 …]
|
| H A D | media-func-ioctl.rst | 4 .. _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.15/tools/perf/tests/ |
| H A D | bp_signal.c | 76 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.15/tools/testing/selftests/rtc/ |
| H A D | rtctest.c | 56 rc = ioctl(self->fd, RTC_RD_TIME, &rtc_tm); in TEST_F() 100 rc = ioctl(fd, RTC_PARAM_GET, ¶m); in get_rtc_alarm_state() 163 rc = ioctl(self->fd, RTC_UIE_ON, 0); 179 rc = ioctl(self->fd, RTC_UIE_OFF, 0); 192 rc = ioctl(self->fd, RTC_UIE_ON, 0); in TEST_F() 218 rc = ioctl(self->fd, RTC_UIE_OFF, 0); in TEST_F() 241 rc = ioctl(self->fd, RTC_RD_TIME, &tm); in TEST_F() 266 rc = ioctl(self->fd, RTC_AIE_ON, 0); in TEST_F() 277 rc = ioctl(self->fd, RTC_AIE_OFF, 0); in TEST_F() 398 rc = ioctl(self->fd, RTC_AIE_ON, 0); [all …]
|
| /linux-6.15/Documentation/driver-api/tty/ |
| H A D | n_gsm.rst | 26 ``TIOCSETD`` ioctl. 69 ioctl(fd, TIOCSETD, &ldisc); 78 ioctl(fd, GSMIOC_GETCONF, &c); 86 ioctl(fd, GSMIOC_SETCONF, &c); 126 ``TIOCSETD`` ioctl. 129 ioctl if needed. 159 ioctl(fd, TIOCSETD, &ldisc); 162 ioctl(fd, GSMIOC_GETCONF_EXT, &ce); 166 ioctl(fd, GSMIOC_SETCONF_EXT, &ce); 168 ioctl(fd, GSMIOC_GETCONF, &c); [all …]
|
| /linux-6.15/Documentation/userspace-api/media/cec/ |
| H A D | cec-func-ioctl.rst | 4 .. _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.15/Documentation/translations/zh_CN/dev-tools/ |
| H A D | kcov.rst | 57 #include <sys/ioctl.h> 84 perror("ioctl"), exit(1); 92 perror("ioctl"), exit(1); 93 /* 在调用 ioctl() 之后重置覆盖率。 */ 104 if (ioctl(fd, KCOV_DISABLE, 0)) 105 perror("ioctl"), exit(1); 172 perror("ioctl"), exit(1); 183 perror("ioctl"), exit(1); 207 perror("ioctl"), exit(1); 321 perror("ioctl"), exit(1); [all …]
|
| /linux-6.15/Documentation/userspace-api/ioctl/ |
| H A D | cdrom.rst | 2 Summary of CDROM ioctl calls 105 ioctl(fd, CDROMPAUSE, 0); 126 ioctl(fd, CDROMRESUME, 0); 265 ioctl(fd, CDROMSTOP, 0); 290 ioctl(fd, CDROMSTART, 0); 316 ioctl(fd, CDROMEJECT, 0); 343 ioctl(fd, CDROMCLOSETRAY, 0); 422 ioctl(fd, CDROMSUBCHNL, &q); 627 ioctl(fd, CDROMRESET, 0); 686 ioctl(fd, CDROMSEEK, &msf); [all …]
|
| /linux-6.15/drivers/scsi/esas2r/ |
| H A D | esas2r_ioctl.c | 71 void *ioctl; member 321 bi.ioctl = si; in handle_smp_ioctl() 350 struct atto_vda_ioctl_req *ioctl = &rq->vrq->ioctl; in csmi_ioctl_tunnel() local 655 bi.ioctl = &ci->data; in handle_csmi_ioctl() 1232 bi.ioctl = ioctl_hba; in handle_hba_ioctl() 1284 if (IS_ERR(ioctl)) { in esas2r_ioctl_handler() 1297 kfree(ioctl); in esas2r_ioctl_handler() 1338 kfree(ioctl); in esas2r_ioctl_handler() 1395 kfree(ioctl); in esas2r_ioctl_handler() 1513 kfree(ioctl); in esas2r_ioctl_handler() [all …]
|
| /linux-6.15/samples/acrn/ |
| H A D | vm-sample.c | 40 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, ®s); 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, ¬ify); in main() 127 ret = ioctl(hsm_fd, ACRN_IOCTL_DESTROY_VM, NULL); in main()
|
| /linux-6.15/drivers/gpu/drm/nouveau/nvif/ |
| H A D | object.c | 60 struct nvif_ioctl_v0_hdr ioctl; in nvif_object_sclass_get() member 70 args->ioctl.version = 0; in nvif_object_sclass_get() 104 struct nvif_ioctl_v0_hdr ioctl; in nvif_object_mthd() member 121 args->ioctl.version = 0; in nvif_object_mthd() 138 struct nvif_ioctl_v0_hdr ioctl; in nvif_object_unmap_handle() member 141 .ioctl.type = NVIF_IOCTL_V0_UNMAP, in nvif_object_unmap_handle() 152 struct nvif_ioctl_v0_hdr ioctl; in nvif_object_map_handle() member 214 struct nvif_ioctl_v0_hdr ioctl; in nvif_object_dtor() member 217 .ioctl.type = NVIF_IOCTL_V0_DEL, in nvif_object_dtor() 233 struct nvif_ioctl_v0_hdr ioctl; in nvif_object_ctor() member [all …]
|
| /linux-6.15/Documentation/userspace-api/gpio/ |
| H A D | chardev_v1.rst | 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> 83 Get Line Values <gpio-handle-get-line-values-ioctl> 84 Set Line Values <gpio-handle-set-line-values-ioctl> 85 Reconfigure Lines <gpio-handle-set-config-ioctl> 92 Line events are created by gpio-get-lineevent-ioctl.rst and provide [all …]
|
| /linux-6.15/tools/testing/selftests/drivers/s390x/uvdevice/ |
| H A D | test_uvdevice.c | 59 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() 139 rc = ioctl(self->uv_fd, cmds[i], &self->uvio_ioctl); in TEST_F() 195 rc = ioctl(self->uv_fd, UVIO_IOCTL_ATT, &self->uvio_ioctl); in att_inval_sizes_test() 201 rc = ioctl(self->uv_fd, UVIO_IOCTL_ATT, &self->uvio_ioctl); in att_inval_sizes_test() 224 rc = ioctl(self->uv_fd, UVIO_IOCTL_ATT, &self->uvio_ioctl); in TEST_F() 230 rc = ioctl(self->uv_fd, UVIO_IOCTL_ATT, &self->uvio_ioctl); in TEST_F() 241 rc = ioctl(self->uv_fd, UVIO_IOCTL_ATT, &self->uvio_ioctl); in att_inval_addr_test() [all …]
|
| /linux-6.15/tools/testing/selftests/watchdog/ |
| H A D | watchdog-test.c | 58 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.15/tools/testing/selftests/net/ |
| H A D | epoll_busy_poll.c | 73 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() 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() 279 ret = ioctl(self->fd, EPIOCSPARAMS, &self->params); in TEST_F() 288 ret = ioctl(self->fd, EPIOCGPARAMS, &self->params); in TEST_F() [all …]
|
| /linux-6.15/drivers/gpu/drm/nouveau/ |
| H A D | nouveau_abi16.c | 722 args = (void *)ioctl->data; in nouveau_abi16_ioctl_mthd() 747 if (ioctl->route || argc) in nouveau_abi16_ioctl_del() 770 args = (void *)ioctl->data; in nouveau_abi16_ioctl_new() 776 if (!ioctl->route) { in nouveau_abi16_ioctl_new() 813 args = (void *)ioctl->data; in nouveau_abi16_ioctl_sclass() 846 if (argc < sizeof(*ioctl)) in nouveau_abi16_ioctl() 848 argc -= sizeof(*ioctl); in nouveau_abi16_ioctl() 851 if (!ioctl) in nouveau_abi16_ioctl() 859 (ioctl->route && ioctl->route != 0xff)) { in nouveau_abi16_ioctl() 870 switch (ioctl->type) { in nouveau_abi16_ioctl() [all …]
|
| /linux-6.15/tools/testing/selftests/x86/ |
| H A D | srso.c | 50 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.15/Documentation/input/ |
| H A D | uinput.rst | 73 ioctl(fd, UI_SET_EVBIT, EV_KEY); 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); 135 ioctl(fd, UI_SET_EVBIT, EV_REL); 136 ioctl(fd, UI_SET_RELBIT, REL_X); 146 ioctl(fd, UI_DEV_CREATE); 171 ioctl(fd, UI_DEV_DESTROY); 217 ioctl(fd, UI_DEV_CREATE); [all …]
|
| /linux-6.15/Documentation/watchdog/ |
| H A D | watchdog-api.rst | 73 The ioctl API 78 Pinging the watchdog using an ioctl: 80 All drivers that have an ioctl interface support at least one ioctl, 86 ioctl(fd, WDIOC_KEEPALIVE, 0); 90 the argument to the ioctl is ignored. 103 ioctl(fd, WDIOC_SETTIMEOUT, &timeout); 110 current timeout using the GETTIMEOUT ioctl:: 112 ioctl(fd, WDIOC_GETTIMEOUT, &timeout); 159 ioctl(fd, WDIOC_GETSUPPORT, &ident); 242 ioctl(fd, WDIOC_GETSTATUS, &flags); [all …]
|
| /linux-6.15/samples/hidraw/ |
| H A D | hid-example.c | 69 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()
|
| /linux-6.15/tools/testing/selftests/kvm/s390/ |
| H A D | ucontrol_test.c | 175 rc = ioctl(self->vcpu_fd, KVM_S390_UCAS_MAP, &map); in FIXTURE_SETUP() 213 rc = ioctl(self->vm_fd, KVM_HAS_DEVICE_ATTR, &attr); in TEST_F() 231 rc = ioctl(self->vm_fd, KVM_GET_DIRTY_LOG, &dlog); in TEST_F() 257 rc = ioctl(vm_fd, KVM_ENABLE_CAP, cap); in TEST() 262 vcpu_fd = ioctl(vm_fd, KVM_CREATE_VCPU, 0); in TEST() 264 rc = ioctl(vm_fd, KVM_ENABLE_CAP, cap); in TEST() 424 rc = ioctl(self->vcpu_fd, KVM_RUN, NULL); in uc_run_once() 736 rc = ioctl(self->vm_fd, KVM_CREATE_DEVICE, &cd); in TEST_F() 750 rc = ioctl(cd.fd, KVM_HAS_DEVICE_ATTR, &attr); in TEST_F() 755 rc = ioctl(cd.fd, KVM_GET_DEVICE_ATTR, &attr); in TEST_F() [all …]
|
| /linux-6.15/tools/testing/selftests/filesystems/nsfs/ |
| H A D | iterate_mntns.c | 57 ASSERT_EQ(ioctl(self->fd_mnt_ns[i], NS_MNT_GET_INFO, &info), 0); in FIXTURE_SETUP() 82 fd_mnt_ns_next = ioctl(fd_mnt_ns_cur, NS_MNT_GET_NEXT, &info); in TEST_F() 103 fd_mnt_ns_prev = ioctl(fd_mnt_ns_cur, NS_MNT_GET_PREV, &info); in TEST_F() 124 fd_mnt_ns_next = ioctl(fd_mnt_ns_cur, NS_MNT_GET_NEXT, &info); in TEST_F() 143 fd_mnt_ns_prev = ioctl(fd_mnt_ns_cur, NS_MNT_GET_PREV, &info); in TEST_F() 153 ASSERT_NE(ioctl(self->fd_mnt_ns[0], AUTOFS_DEV_IOCTL_OPENMOUNT, NULL), 0); in TEST_F() 156 ASSERT_NE(ioctl(self->fd_mnt_ns[0], AUTOFS_DEV_IOCTL_CLOSEMOUNT, NULL), 0); in TEST_F() 159 ASSERT_NE(ioctl(self->fd_mnt_ns[0], AUTOFS_DEV_IOCTL_READY, NULL), 0); in TEST_F()
|