MOS Source Code
Loading...
Searching...
No Matches
Directory Struct Referencefinal

#include <vfs_types.hpp>

+ Inheritance diagram for Directory:
+ Collaboration diagram for Directory:

Public Member Functions

 Directory (IOFlags flags, dentry_t *dentry)
 
 ~Directory ()=default
 
size_t on_read (void *buf, size_t size) override
 
void on_closed () override
 
- Public Member Functions inherited from BasicFile
 ~BasicFile ()=default
 
 BasicFile (IOFlags flags, io_type_t type, dentry_t *dentry)
 
mos::string name () const override
 
const file_ops_tget_ops () const
 
- Public Member Functions inherited from IO
 IO (IOFlags flags, io_type_t type)
 
virtual ~IO ()=0
 
IOref ()
 
IOunref ()
 
virtual off_t seek (off_t, io_seek_whence_t) final
 
virtual off_t tell () final
 
virtual size_t read (void *buf, size_t count) final
 
virtual size_t pread (void *buf, size_t count, off_t offset) final
 
virtual size_t write (const void *buf, size_t count) final
 
virtual bool VerifyMMapPermissions (VMFlags flags, bool is_private) final
 
bool map (vmap_t *vmap, off_t offset)
 
bool unmap (vmap_t *vmap, bool *unmapped)
 

Additional Inherited Members

- Static Public Member Functions inherited from IO
static bool IsValid (const IO *io)
 
- Public Attributes inherited from BasicFile
dentry_tdentry
 
spinlock_t offset_lock
 
size_t offset
 
voidprivate_data
 
- Public Attributes inherited from IO
const IOFlags io_flags = IO_NONE
 
const io_type_t io_type = IO_NULL
 
- Static Public Attributes inherited from NamedType<"Directory">
static constexpr mos::string_view type_name
 

Detailed Description

Definition at line 250 of file vfs_types.hpp.

Constructor & Destructor Documentation

◆ Directory()

Directory ( IOFlags flags,
dentry_t * dentry )
inline

Definition at line 252 of file vfs_types.hpp.

+ Here is the call graph for this function:

◆ ~Directory()

~Directory ( )
default

Member Function Documentation

◆ on_read()

size_t on_read ( void * buf,
size_t size )
overridevirtual

Reimplemented from IO.

Definition at line 85 of file vfs.cpp.

+ Here is the call graph for this function:

◆ on_closed()

void on_closed ( )
overridevirtual

Implements IO.

Definition at line 90 of file vfs.cpp.

+ Here is the call graph for this function:

The documentation for this struct was generated from the following files: