PatchworkOS
Loading...
Searching...
No Matches
file.h File Reference
#include <kernel/fs/path.h>
#include <kernel/mem/paging_types.h>
#include <kernel/utils/ref.h>
#include <stdatomic.h>
#include <stdint.h>
#include <sys/io.h>
#include <sys/proc.h>

Go to the source code of this file.

Data Structures

struct  file_t
 File structure. More...
 
struct  file_ops_t
 File operations structure. More...
 
struct  poll_file_t
 Structure for polling multiple files. More...
 

Typedefs

typedef struct wait_queue wait_queue_t
 
typedef struct file file_t
 
typedef struct file_ops file_ops_t
 
typedef struct dentry dentry_t
 
typedef struct inode inode_t
 
typedef struct poll_file poll_file_t
 

Functions

file_tfile_new (inode_t *inode, const path_t *path, path_flags_t flags)
 Create a new file structure.
 
uint64_t file_generic_seek (file_t *file, int64_t offset, seek_origin_t origin)
 Helper function for basic seeking.
 

Typedef Documentation

◆ dentry_t

typedef struct dentry dentry_t

Definition at line 16 of file file.h.

◆ file_ops_t

typedef struct file_ops file_ops_t

Definition at line 15 of file file.h.

◆ file_t

typedef struct file file_t

Definition at line 14 of file file.h.

◆ inode_t

typedef struct inode inode_t

Definition at line 17 of file file.h.

◆ poll_file_t

typedef struct poll_file poll_file_t

Definition at line 18 of file file.h.

◆ wait_queue_t

typedef struct wait_queue wait_queue_t

Definition at line 12 of file file.h.