Lines Matching defs:linux
31 //! subcomponents (For linux this is documented in
32 //! [`Documentation/ioctl/ioctl-number.rst`](https://elixir.bootlin.com/linux/latest/source/Documentation/userspace-api/ioctl/ioctl-number.rst)):
53 //! `/include/uapi/linux/spi/spidev.h` as `_IOR(SPI_IOC_MAGIC, 1, __u8)`. Since it uses the `_IOR`
58 //! const SPI_IOC_MAGIC: u8 = b'k'; // Defined in linux/spi/spidev.h
72 //! # const SPI_IOC_MAGIC: u8 = b'k'; // Defined in linux/spi/spidev.h
107 //! [`ioctl_list` man page](https://man7.org/linux/man-pages/man2/ioctl_list.2.html) describes a
124 //! # #[cfg(any(target_os = "android", target_os = "linux"))]
126 //! # #[cfg(any(target_os = "android", target_os = "linux"))]
128 //! # #[cfg(any(target_os = "android", target_os = "linux"))]
150 //! `linux/spi/spidev.h` defines a macro to calculate the `ioctl` number like:
163 //! const SPI_IOC_MAGIC: u8 = b'k'; // Defined in linux/spi/spidev.h
193 //! For Linux, look at your system's headers. For example, `/usr/include/linux/input.h` has a lot
226 #[cfg(any(target_os = "android", target_os = "linux", target_os = "redox"))]
228 mod linux;
232 target_os = "linux",
235 pub use self::linux::*;
374 /// const SPI_IOC_MAGIC: u8 = b'k'; // Defined in linux/spi/spidev.h
411 /// # #[cfg(any(target_os = "android", target_os = "linux"))]
484 /// # #[cfg(any(target_os = "android", target_os = "linux"))]
603 /// # #[cfg(any(target_os = "android", target_os = "linux"))]
741 /// const SPI_IOC_MAGIC: u8 = b'k'; // Defined in linux/spi/spidev.h