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

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

#include <core/system.h>
#include <fs/vfs.h>
#include <fs/posix.h>

Go to the source code of this file.

Functions

int posix_file_close (struct file *file)
 Closes an open file by dropping its reference to its vnode.

Detailed Description

The generic close operation for files that are vnodes.

Definition in file close.c.

Function Documentation

◆ posix_file_close()

int posix_file_close ( struct file * file)

Closes an open file by dropping its reference to its vnode.

Parameters
filethe open file
Returns
0, or a negative errno

Definition at line 15 of file close.c.

References posix_file_close(), and vfs_close().

Referenced by kdev_file_close(), posix_file_close(), ps2mouse_file_close(), vfs_file_close(), and vt_file_close().