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).

IOCTL call and checking return value

if((err = ioctl(fd, IOC_CARD_LOCK, &lock)) < 0) { printf("ioctl failed and returned errno %d \n",err); } Is …

ioctl errno
Is it possible to call a user-space callback function from kernel space in Linux (ioctl)?

Is it possible to expand the ioctl interface in Linux so that the user-space application can send a pointer to …

linux-kernel kernel linux-device-driver ioctl
How to properly convert a C ioctl call to a python fcntl.ioctl call?

Following an example on resetting a serial port in Linux I wanted to translate the following snippet fd = open(filename, …

python python-2.7 ioctl fcntl
add and remove IP addresses to an interface using ioctl or netlink

Is there anyway to add and remove IP addresses from an interface (like loopback) in C? I found ioctl and …

c network-programming ioctl ifconfig
Detect laptop lid closure and opening

Is it possible to detect when a laptop's lid is open or closed? From what I've read, this isn't possible, …

.net winapi pinvoke ioctl
How to call compat_ioctl or unlocked_ioctl?

I'm trying to implement a driver for RTC (Real Time Clock). I used ioctl function in kernel 2.6.32. It worked fine. …

linux-device-driver ioctl
Can someone help me replace "lock_kernel" on a block device driver?

Thank you for looking at this post. I am trying to patch up a network block device driver. If you …

linux-kernel linux-device-driver ioctl
Retrieving a List of network interfaces in node.js (ioctl SIOCGIFCONF)

I'm new to node and am hacking together a node application utilizing node_pcap to capture packet data and do …

javascript node.js interface v8 ioctl
Issue with SPI (Serial Port Comm), stuck on ioctl()

I'm trying to access a SPI sensor using the SPIDEV driver but my code gets stuck on IOCTL. I'm running …

c linux-device-driver embedded-linux ioctl atmel
Getting WIFI signal strength- seeking the best way (IOCTL, iwlist (iw) etc.)

I want to scan the signal strength received from 3 AP. I would be happy if that could happen every 300ms (…

linux wifi ioctl ssid iwconfig