Top "Ioctl" questions

ioctl (Input Output ConTroL) is a system call for device-specific I/O operations and other operations which cannot be expressed by regular system calls and it provides an interface through which an application can communicate directly with a device driver(or any other global kernel space variables).

How Linux knows which ioctl function to call?

Here is the ioctl call in user space: int ioctl(int fd, int cmd, ...); As far as I know, when …

c linux linux-kernel linux-device-driver ioctl
How does iwlist() command scans the wireless networks?

I want to know how iwlist command scans the wireless networks available, in linux. I read its source code and …

linux kernel wireless ioctl
How can I prevent SIOCGIFADDR from failing?

I want to get the eth0's IP. Here is what I've written (maybe there is a way around it?): …

c sockets ioctl
Having a problem figuring out how to get Ethernet interface info on Mac OS X using ioctl/SIOCGIFADDR/SIOCGIFCONF?

Are you having a problem figuring out how to get interface info on Mac OS X using ioctl/SIOCGIFADDR/SIOCGIFCONF? …

linux macos ethernet ioctl
Get IPv6 addresses in linux using ioctl

I trying to get IPv6 addresses in my linux OS like following: sd = Socket_m(AF_INET6_m, SOCK_DGRAM_…

c linux ipv6 ioctl
How to set errno in Linux device driver?

I am designing a Linux character device driver. I want to set errno when error occurs in ioctl() system call. …

linux driver device-driver ioctl errno
C# - Possible to use IOCTL

I'm trying to code for a Point Of Sale system which allows for a "Cash Drawer" attachment. Code is provided …

c# dllimport handle ioctl kernel32
How to open tap device on android using native code C?

I am trying build a VPN client mobile for Android based applications that connect to virtual infrastructure over VPN tunnel. …

android-ndk vpn openvpn ioctl tun
Android ioctl - root permissions and usage

I'm working on some routing functionality in an Android app, and need to access ioctls. Since apps that use ioctls …

android java-native-interface android-ndk ioctl