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

Declares device controlling operations. More...

Go to the source code of this file.

Functions

int sys_ioctl (int fd, int request, void *data)
 Manipulates the underlying device parameters of special files, or operating characteristics of character special files (e.g., terminals). More...
 

Detailed Description

Declares device controlling operations.

Function Documentation

◆ sys_ioctl()

int sys_ioctl ( int  fd,
int  request,
void *  data 
)

Manipulates the underlying device parameters of special files, or operating characteristics of character special files (e.g., terminals).

Parameters
fdMust be an open file descriptor.
requestThe device-dependent request code
dataAn untyped pointer to memory.
Returns
On success zero is returned.