/openbmc/qemu/linux-user/ |
H A D | ioctls.h | 1 /* emulated ioctl list */ 3 IOCTL(TCGETS, IOC_R, MK_PTR(MK_STRUCT(STRUCT_termios))) in IOCTL() function 4 IOCTL(TCSETS, IOC_W, MK_PTR(MK_STRUCT(STRUCT_termios))) in IOCTL() 5 IOCTL(TCSETSF, IOC_W, MK_PTR(MK_STRUCT(STRUCT_termios))) in IOCTL() 6 IOCTL(TCSETSW, IOC_W, MK_PTR(MK_STRUCT(STRUCT_termios))) in IOCTL() 7 IOCTL(TIOCGWINSZ, IOC_R, MK_PTR(MK_STRUCT(STRUCT_winsize))) in IOCTL() 8 IOCTL(TIOCSWINSZ, IOC_W, MK_PTR(MK_STRUCT(STRUCT_winsize))) in IOCTL() 9 IOCTL(FIONREAD, IOC_R, MK_PTR(TYPE_INT)) in IOCTL() 10 IOCTL(TCGETA, IOC_R, MK_PTR(TYPE_INT)) in IOCTL() 11 IOCTL(TCSETA, IOC_W, MK_PTR(TYPE_INT)) in IOCTL() [all …]
|
H A D | linux_loop.h | 40 int lo_number; /* ioctl r/o */ 41 __kernel_old_dev_t lo_device; /* ioctl r/o */ 42 unsigned long lo_inode; /* ioctl r/o */ 43 __kernel_old_dev_t lo_rdevice; /* ioctl r/o */ 46 int lo_encrypt_key_size; /* ioctl w/o */ 47 int lo_flags; /* ioctl r/o */ 49 unsigned char lo_encrypt_key[LO_KEY_SIZE]; /* ioctl w/o */ 55 __u64 lo_device; /* ioctl r/o */ 56 __u64 lo_inode; /* ioctl r/o */ 57 __u64 lo_rdevice; /* ioctl r/o */ [all …]
|
/openbmc/linux/include/media/ |
H A D | v4l2-ioctl.h | 23 * struct v4l2_ioctl_ops - describe operations for each V4L2 ioctl 26 * :ref:`VIDIOC_QUERYCAP <vidioc_querycap>` ioctl 28 * :ref:`VIDIOC_ENUM_FMT <vidioc_enum_fmt>` ioctl logic 31 * :ref:`VIDIOC_ENUM_FMT <vidioc_enum_fmt>` ioctl logic 34 * :ref:`VIDIOC_ENUM_FMT <vidioc_enum_fmt>` ioctl logic 37 * :ref:`VIDIOC_ENUM_FMT <vidioc_enum_fmt>` ioctl logic 40 * :ref:`VIDIOC_ENUM_FMT <vidioc_enum_fmt>` ioctl logic 43 * :ref:`VIDIOC_ENUM_FMT <vidioc_enum_fmt>` ioctl logic 46 * :ref:`VIDIOC_ENUM_FMT <vidioc_enum_fmt>` ioctl logic 49 * :ref:`VIDIOC_G_FMT <vidioc_g_fmt>` ioctl logic for video capture [all …]
|
/openbmc/linux/include/drm/ |
H A D | drm_ioctl.h | 38 #include <asm/ioctl.h> 45 * drm_ioctl_t - DRM ioctl function type. 47 * @data: private pointer of the ioctl call 48 * @file_priv: DRM file this ioctl was made on 50 * This is the DRM ioctl typedef. Note that drm_ioctl() has alrady copied @data 52 * settings in the ioctl command code. 58 * drm_ioctl_compat_t - compatibility DRM ioctl function type. 60 * @cmd: ioctl command code 61 * @arg: DRM file this ioctl was made on 64 * New drivers shouldn't screw up the structure layout for their ioctl [all …]
|
/openbmc/linux/rust/kernel/ |
H A D | ioctl.rs | 3 //! ioctl() number definitions 5 //! C header: [`include/asm-generic/ioctl.h`](../../../../include/asm-generic/ioctl.h) 11 /// Build an ioctl number, analogous to the C macro of the same name. 25 /// Build an ioctl number for an argumentless ioctl. 31 /// Build an ioctl number for an read-only ioctl. 37 /// Build an ioctl number for an write-only ioctl. 43 /// Build an ioctl number for a read-write ioctl. 54 /// Get the ioctl direction from an ioctl number. 59 /// Get the ioctl type from an ioctl number. 64 /// Get the ioctl number from an ioctl number. [all …]
|
/openbmc/linux/Documentation/userspace-api/ioctl/ |
H A D | cdrom.rst | 2 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 …]
|
/openbmc/linux/Documentation/driver-api/tty/ |
H A D | n_gsm.rst | 26 ``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 …]
|
/openbmc/linux/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 …]
|
/openbmc/linux/Documentation/userspace-api/media/mediactl/ |
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 …]
|
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 …]
|
/openbmc/qemu/net/ |
H A D | tap-linux.c | 32 #include <sys/ioctl.h> 56 if (ioctl(fd, TUNGETFEATURES, &features) == -1) { in tap_open() 82 * Ignore errors since old kernels do not support this ioctl: in this in tap_open() 85 ioctl(fd, TUNSETVNETHDRSZ, &len); in tap_open() 103 ret = ioctl(fd, TUNSETIFF, (void *) &ifr); in tap_open() 144 if (ioctl(fd, TUNSETSNDBUF, &sndbuf) == -1 && tap->has_sndbuf) { in tap_set_sndbuf() 145 error_setg_errno(errp, errno, "TUNSETSNDBUF ioctl failed"); in tap_set_sndbuf() 154 if (ioctl(fd, TUNGETIFF, &ifr) != 0) { in tap_probe_vnet_hdr() 170 if (ioctl(fd, TUNSETOFFLOAD, offload) < 0) in tap_probe_has_ufo() 182 if (ioctl(fd, TUNSETOFFLOAD, offload) < 0) { in tap_probe_has_uso() [all …]
|
/openbmc/linux/Documentation/translations/zh_CN/video4linux/ |
H A D | omap3isp.txt | 104 通过 VIDIOC_OMAP3ISP_STAT_REQ IOCTL 操作获取时,就会产生一个 111 这些 ioctl 的事件数据类型为 struct omap3isp_stat_event_status 117 私有 IOCTL 120 OMAP 3 ISP 驱动支持标准的 V4L2 IOCTL 以及可能存在且实用的控制。但 121 ISP 提供的许多功能都不在标准 IOCTL 之列,例如 gamma(伽马)表和统计 124 通常,会有一个私有 ioctl 用于配置每个包含硬件依赖功能的模块。 126 支持以下私有 IOCTL: 136 在 include/linux/omap3isp.h 中描述了这些 ioctl 使用的参数结构体。 140 虽然在不使用任何私有 IOCTL 的情况下使用 ISP 驱动是可能的,但这样无法 142 控制,以及图像均衡等)模块无法在未使用适当的私有 IOCTL 配置的情况下使用。 [all …]
|
/openbmc/linux/include/uapi/linux/ |
H A D | loop.h | 38 int lo_number; /* ioctl r/o */ 39 __kernel_old_dev_t lo_device; /* ioctl r/o */ 40 unsigned long lo_inode; /* ioctl r/o */ 41 __kernel_old_dev_t lo_rdevice; /* ioctl r/o */ 44 int lo_encrypt_key_size; /* ioctl w/o */ 47 unsigned char lo_encrypt_key[LO_KEY_SIZE]; /* ioctl w/o */ 53 __u64 lo_device; /* ioctl r/o */ 54 __u64 lo_inode; /* ioctl r/o */ 55 __u64 lo_rdevice; /* ioctl r/o */ 58 __u32 lo_number; /* ioctl r/o */ [all …]
|
H A D | uinput.h | 26 * - add UI_DEV_SETUP ioctl 27 * - add UI_ABS_SETUP ioctl 28 * - add UI_GET_VERSION ioctl 30 * - add UI_GET_SYSNAME ioctl 62 /* ioctl */ 76 * This ioctl sets parameters for the input device to be created. It 81 * The ioctl takes a "struct uinput_setup" object as argument. The fields of 89 * This ioctl can be called multiple times and will overwrite previous values. 90 * If this ioctl fails with -EINVAL, it is recommended to use the old 92 * old kernel that does not support this ioctl. [all …]
|
H A D | mei.h | 13 * This IOCTL is used to associate the current file descriptor with a 20 * The IOCTL argument is a struct with a union that contains 21 * the input parameter and the output parameter for this IOCTL. 41 * IOCTL Connect Client Data structure 53 * The IOCTL argument is 1 for enabling event notification and 0 for 62 * The IOCTL output argument is 1 if an event was is pending and 0 otherwise 63 * the ioctl has to be called in order to acknowledge pending event 83 * struct mei_connect_client_data_vtag - IOCTL connect data union 97 * This IOCTL is used to associate the current file descriptor with a 99 * The IOCTL opens a communication channel between a host client and [all …]
|
/openbmc/linux/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 …]
|
/openbmc/linux/Documentation/input/ |
H A D | uinput.rst | 73 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 …]
|
/openbmc/linux/tools/testing/selftests/powerpc/ptrace/ |
H A D | perf-hwbreak.c | 29 #include <sys/ioctl.h> 126 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() [all …]
|
/openbmc/linux/include/uapi/drm/ |
H A D | vmwgfx_drm.h | 88 * Does the driver support the overlay ioctl. 137 * Argument to the DRM_VMW_GET_PARAM Ioctl. 159 * Output argument to the DRM_VMW_CREATE_CONTEXT Ioctl. 160 * Input argument to the DRM_VMW_UNREF_CONTEXT Ioctl. 202 * Input data to the DRM_VMW_CREATE_SURFACE Ioctl. 203 * Output data from the DRM_VMW_REF_SURFACE Ioctl. 219 * @handle_type: Handle type for DRM_VMW_REF_SURFACE Ioctl. 221 * Output data from the DRM_VMW_CREATE_SURFACE Ioctl. 222 * Input argument to the DRM_VMW_UNREF_SURFACE Ioctl. 223 * Input argument to the DRM_VMW_REF_SURFACE Ioctl. [all …]
|
/openbmc/linux/tools/testing/selftests/iommu/ |
H A D | iommufd.c | 80 EXPECT_ERRNO(EFAULT, ioctl(self->fd, IOMMU_DESTROY, NULL)); in TEST_F() 81 /* Unknown ioctl */ in TEST_F() 83 ioctl(self->fd, _IO(IOMMUFD_TYPE, IOMMUFD_CMD_BASE - 1), in TEST_F() 99 EXPECT_ERRNO(EINVAL, ioctl(self->fd, _ioctl, &cmd)); \ in TEST_F() 101 EXPECT_ERRNO(E2BIG, ioctl(self->fd, _ioctl, &cmd)); \ in TEST_F() 103 rc = ioctl(self->fd, _ioctl, &cmd); \ in TEST_F() 109 ioctl(self->fd, _ioctl, &cmd)); \ in TEST_F() 111 ASSERT_EQ(0, ioctl(self->fd, _ioctl, &cmd)); \ in TEST_F() 136 EXPECT_ERRNO(ENOENT, ioctl(self->fd, IOMMU_DESTROY, &cmd)); in TEST_F() 139 EXPECT_ERRNO(E2BIG, ioctl(self->fd, IOMMU_DESTROY, &cmd)); in TEST_F() [all …]
|
/openbmc/linux/drivers/platform/x86/intel/speed_select_if/ |
H A D | isst_if_common.h | 21 * This is enough to handle command to every core in one ioctl, or all 23 * per IOCTL request, as PUNIT may take different times to process each 37 * struct isst_if_cmd_cb - Used to register a IOCTL handler 40 * @cmd_size: The command size of the individual command in IOCTL 46 * @cmd_callback: Callback function to handle IOCTL. The callback has the 49 * response to user ioctl buffer. The "resume" argument 52 * @def_ioctl: Default IOCTL handler callback, if there is no match in 53 * the existing list of IOCTL handled by the common handler. 55 * This structure is used to register an handler for IOCTL. To avoid 56 * code duplication common code handles all the IOCTL command read/write [all …]
|
/openbmc/linux/Documentation/virt/coco/ |
H A D | sev-guest.rst | 15 whole SEV firmware. These ioctl are used by platform provisioning tools. 23 from the SEV firmware. For each ioctl, the following information is provided 27 which SEV technology provides this ioctl. SEV, SEV-ES, SEV-SNP or all. 30 hypervisor or guest. The ioctl can be used inside the guest or the 34 what parameters are accepted by the ioctl. 40 The guest ioctl should be issued on a file descriptor of the /dev/sev-guest 41 device. The ioctl accepts struct snp_user_guest_request. The input and 43 respectively. If the ioctl fails to execute due to a firmware error, then 74 :Type: guest ioctl 78 The SNP_GET_REPORT ioctl can be used to query the attestation report from the [all …]
|
/openbmc/linux/drivers/gpu/drm/ |
H A D | drm_ioctl.c | 57 * - GET_UNIQUE ioctl, implemented by drm_getunique is wrapped up in libdrm 59 * - The libdrm drmSetBusid function is backed by the SET_UNIQUE ioctl. All 62 * exclusively use by the SET_VERSION ioctl, because only drm 1.0 (which is 63 * nerved) allowed userspace to set the busid through the above ioctl. 85 * name returned by that ioctl. Note that SET_VERSION is not called, which 188 * Hollowed-out getclient ioctl to keep some dead old drm tests/tools in drm_getclient() 372 * Setversion ioctl. 428 * drm_noop - DRM no-op ioctl implementation 429 * @dev: DRM device for the ioctl 430 * @data: data pointer for the ioctl [all …]
|
/openbmc/linux/tools/testing/selftests/rtc/ |
H A D | rtctest.c | 13 #include <sys/ioctl.h> 49 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() [all …]
|
/openbmc/linux/Documentation/translations/it_IT/process/ |
H A D | botching-up-ioctls.rst | 6 (Come evitare di) Raffazzonare delle ioctl 16 oggigiorno ogni driver ha il suo insieme di ioctl per allocare memoria ed 24 riguardo al modo migliore per implementare una ioctl per inviare compiti alla 67 * Abbiate un modo chiaro per capire dallo spazio utente se una nuova ioctl, o 70 un nuovo *flag*, modalità, o ioctl, (probabilmente perché avevate raffazzonato 75 * Abbiate un piano per estendere le ioctl con nuovi *flag* o campi alla fine di 76 una struttura dati. Il sistema drm verifica la dimensione di ogni ioctl in 84 altrimenti rifiutare la ioctl. Se non lo fate il vostro bel piano per 85 estendere le ioctl andrà a rotoli dato che qualcuno userà delle ioctl con 104 * Le ioctl devono verificare l'overflow dei vettori. Inoltre, per i valori [all …]
|