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

Go to the source code of this file.

Classes

struct  poll_table_struct
 
struct  file_operations
 
struct  file
 
struct  inode
 
struct  cdev
 
struct  device
 

Macros

#define MKDEV(ma, mi)   (((unsigned int)(ma) << 20) | ((unsigned int)(mi)))
 
#define MAJOR(dev)   ((unsigned int)(dev) >> 20)
 
#define MINOR(dev)   ((unsigned int)(dev) & 0xFFFFFu)
 
#define DCL_MAX_ERRNO   4095
 
#define ERR_PTR(err)   ((void*)(long)(err))
 
#define PTR_ERR(ptr)   ((long)(ptr))
 
#define IS_ERR(ptr)   dcl_is_err(ptr)
 

Typedefs

typedef unsigned int fop_flags_t
 
typedef unsigned int __poll_t
 

Functions

int register_chrdev_region (unsigned int from, unsigned int count, const char *name)
 
void unregister_chrdev_region (unsigned int from, unsigned int count)
 

Macro Definition Documentation

◆ DCL_MAX_ERRNO

#define DCL_MAX_ERRNO   4095

◆ ERR_PTR

#define ERR_PTR (   err)    ((void*)(long)(err))

◆ IS_ERR

#define IS_ERR (   ptr)    dcl_is_err(ptr)

◆ MAJOR

#define MAJOR (   dev)    ((unsigned int)(dev) >> 20)

◆ MINOR

#define MINOR (   dev)    ((unsigned int)(dev) & 0xFFFFFu)

◆ MKDEV

#define MKDEV (   ma,
  mi 
)    (((unsigned int)(ma) << 20) | ((unsigned int)(mi)))

◆ PTR_ERR

#define PTR_ERR (   ptr)    ((long)(ptr))

Typedef Documentation

◆ __poll_t

typedef unsigned int __poll_t

◆ fop_flags_t

typedef unsigned int fop_flags_t

Function Documentation

◆ register_chrdev_region()

int register_chrdev_region ( unsigned int  from,
unsigned int  count,
const char *  name 
)

◆ unregister_chrdev_region()

void unregister_chrdev_region ( unsigned int  from,
unsigned int  count 
)