MentOS  0.8.0
The Mentoring Operating System
Functions
ioctl.h File Reference

Input/Output ConTroL (IOCTL) functions. More...

Go to the source code of this file.

Functions

int ioctl (int fd, unsigned long int request, void *data)
 Perform the I/O control operation specified by REQUEST on FD. One argument may follow; its presence and type depend on REQUEST. More...
 

Detailed Description

Input/Output ConTroL (IOCTL) functions.

Function Documentation

◆ ioctl()

int ioctl ( int  fd,
unsigned long int  request,
void *  data 
)

Perform the I/O control operation specified by REQUEST on FD. One argument may follow; its presence and type depend on REQUEST.

Parameters
fdMust be an open file descriptor.
requestThe device-dependent request code
dataAn untyped pointer to memory.
Returns
Return value depends on REQUEST. Usually -1 indicates error.