MOS Source Code
Loading...
Searching...
No Matches
FsBaseFile Struct Reference

#include <vfs_types.hpp>

Inheritance diagram for FsBaseFile:
Collaboration diagram for FsBaseFile:

Public Member Functions

 ~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)

Public Attributes

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

Additional Inherited Members

Static Public Member Functions inherited from IO
static bool IsValid (const IO *io)

Detailed Description

Definition at line 203 of file vfs_types.hpp.

Constructor & Destructor Documentation

◆ ~FsBaseFile()

~FsBaseFile ( )
default

◆ FsBaseFile()

FsBaseFile ( IOFlags flags,
io_type_t type,
dentry_t * dentry )
inline

Definition at line 212 of file vfs_types.hpp.

Referenced by FsDir::FsDir(), and FsFile::FsFile().

Here is the call graph for this function:

Member Function Documentation

◆ name()

mos::string name ( ) const
overridevirtual

Reimplemented from IO.

Definition at line 403 of file vfs.cpp.

Here is the call graph for this function:

◆ get_ops()

Member Data Documentation

◆ dentry

◆ offset_lock

spinlock_t offset_lock

Definition at line 206 of file vfs_types.hpp.

Referenced by FsFile::on_read(), FsFile::on_seek(), and FsFile::on_write().

◆ offset

◆ private_data


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