XenevaOS
Loading...
Searching...
No Matches
Classes | Macros | Functions
file.h File Reference
#include <linux/fs.h>
#include <linux/fcntl.h>
#include <linux/pid.h>
#include <linux/cleanup.h>
Include dependency graph for file.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  fd
 

Macros

#define FMODE_LSEEK   0x00000004
 
#define FMODE_PREAD   0x00000008
 
#define FMODE_PWRITE   0x00000010
 
#define fd_empty(f)   ((f).file == NULL)
 
#define fd_file(f)   ((f).file)
 
#define fd_valid(f)   (fd_file(f) != NULL)
 
#define fd_t   struct fd
 

Functions

int nonseekable_open (struct inode *inode, struct file *filp)
 
void fput (struct file *file)
 
int get_unused_fd_flags (unsigned flags)
 
void put_unused_fd (unsigned int fd)
 
void fd_install (unsigned int fd, struct file *file)
 
struct file * file_clone_open (struct file *file)
 

Macro Definition Documentation

◆ fd_empty

#define fd_empty (   f)    ((f).file == NULL)

◆ fd_file

#define fd_file (   f)    ((f).file)

◆ fd_t

#define fd_t   struct fd

◆ fd_valid

#define fd_valid (   f)    (fd_file(f) != NULL)

◆ FMODE_LSEEK

#define FMODE_LSEEK   0x00000004

◆ FMODE_PREAD

#define FMODE_PREAD   0x00000008

◆ FMODE_PWRITE

#define FMODE_PWRITE   0x00000010

Function Documentation

◆ fd_install()

void fd_install ( unsigned int  fd,
struct file *  file 
)

◆ file_clone_open()

struct file * file_clone_open ( struct file *  file)

◆ fput()

void fput ( struct file *  file)

◆ get_unused_fd_flags()

int get_unused_fd_flags ( unsigned  flags)

◆ nonseekable_open()

int nonseekable_open ( struct inode *  inode,
struct file *  filp 
)

◆ put_unused_fd()

void put_unused_fd ( unsigned int  fd)