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

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

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.