Tenok
A Linux-like Real-Time Operating System for Robotics and Internet of Things
Functions
ioctl.h File Reference

Go to the source code of this file.

Functions

int ioctl (int fd, unsigned long request,...)
 Perform device-specific control. More...
 

Function Documentation

◆ ioctl()

int ioctl ( int  fd,
unsigned long  request,
  ... 
)

Perform device-specific control.

Parameters
fdThe file descriptor number of the file.
requestThe request command to perform.
argThe argument the request takes, which a request that takes none does not mind being handed.
Return values
int0 on success and -1 on error, with the reason left in errno.