PatchworkOS  10941b4
A non-POSIX operating system.
Loading...
Searching...
No Matches
devfs.h File Reference
#include <kernel/fs/dentry.h>
#include <kernel/fs/inode.h>
#include <sys/io.h>
Include dependency graph for devfs.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  devfs_file_desc_t
 Descriptor for batch file creation. More...
 

Macros

#define DEVFS_NAME   "devfs"
 The name of the device filesystem.
 

Typedefs

typedef struct file file_t
 
typedef struct file_ops file_ops_t
 
typedef struct superblock superblock_t
 
typedef struct superblock_ops superblock_ops_t
 

Functions

void devfs_init (void)
 Initializes the devfs.
 
dentry_tdevfs_dir_new (dentry_t *parent, const char *name, const inode_ops_t *inodeOps, void *private)
 Create a new directory inside a mounted devfs instance.
 
dentry_tdevfs_file_new (dentry_t *parent, const char *name, const inode_ops_t *inodeOps, const file_ops_t *fileOps, void *private)
 Create a new file inside a mounted devfs instance.
 
dentry_tdevfs_symlink_new (dentry_t *parent, const char *name, const inode_ops_t *inodeOps, void *private)
 Create a new symbolic link inside a mounted devfs instance.
 
uint64_t devfs_files_new (list_t *out, dentry_t *parent, const devfs_file_desc_t *descs)
 Create multiple files in a devfs directory.
 
void devfs_files_free (list_t *files)
 Free all files in a list created by devfs_files_new().
 

Typedef Documentation

◆ file_t

Definition at line 7 of file devfs.h.

◆ file_ops_t

Definition at line 8 of file devfs.h.

◆ superblock_t

Definition at line 10 of file devfs.h.

◆ superblock_ops_t

Definition at line 11 of file devfs.h.