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

#include <vfs_types.hpp>

Inheritance diagram for FsDir:
Collaboration diagram for FsDir:

Public Member Functions

 FsDir (IOFlags flags, dentry_t *dentry)
 ~FsDir ()=default
size_t on_read (void *buf, size_t size) override
void on_closed () override
Public Member Functions inherited from FsBaseFile
 ~FsBaseFile ()=default
 FsBaseFile (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 FsBaseFile
dentry_t *const dentry
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

◆ FsDir()

FsDir ( IOFlags flags,
dentry_t * dentry )
inline

Definition at line 252 of file vfs_types.hpp.

Here is the call graph for this function:

◆ ~FsDir()

~FsDir ( )
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: