AquilaOS documentation
How it works, and its code
Loading...
Searching...
No Matches
ioctl.c File Reference

The generic ioctl operation for files that are vnodes. More...

#include <core/system.h>
#include <fs/vfs.h>
#include <aquila/errno.h>

Go to the source code of this file.

Functions

int posix_file_ioctl (struct file *file, int request, void *argp)
 Passes an ioctl() request on to the file's vnode (a device's, or its filesystem's).

Detailed Description

The generic ioctl operation for files that are vnodes.

Definition in file ioctl.c.

Function Documentation

◆ posix_file_ioctl()

int posix_file_ioctl ( struct file * file,
int request,
void * argp )

Passes an ioctl() request on to the file's vnode (a device's, or its filesystem's).

Parameters
filethe open file
requestthe request
argpits argument, often a pointer to user memory
Returns
the request's result, or a negative errno

Definition at line 19 of file ioctl.c.

References posix_file_ioctl(), and vfs_ioctl().

Referenced by posix_file_ioctl().