The Pedigree Project  0.1
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
DevFs Class Reference

#include <DevFs.h>

+ Inheritance diagram for DevFs:
+ Collaboration diagram for DevFs:

Public Member Functions

virtual bool initialise (Disk *pDisk)
 
virtual FilegetRoot () const
 
virtual String getVolumeLabel () const
 
virtual size_t getNextInode ()
 
virtual void revertInode ()
 
void handleInput (InputManager::InputNotification &in)
 
VirtualTerminalManagergetTerminalManager ()
 
- Public Member Functions inherited from Filesystem
 Filesystem ()
 
virtual ~Filesystem ()
 
virtual Filefind (const StringView &path)
 
virtual Filefind (const String &path)
 
virtual Filefind (const StringView &path, File *pStartNode)
 
virtual Filefind (const String &path, File *pStartNode)
 
bool createFile (const StringView &path, uint32_t mask, File *pStartNode=0)
 
bool createDirectory (const StringView &path, uint32_t mask, File *pStartNode=0)
 
bool createSymlink (const StringView &path, const String &value, File *pStartNode=0)
 
bool createLink (const StringView &path, File *target, File *pStartNode=0)
 
bool remove (const StringView &path, File *pStartNode=0)
 
DiskgetDisk ()
 
bool isReadOnly ()
 
virtual bool isCaseSensitive ()
 

Protected Member Functions

virtual bool createFile (File *parent, const String &filename, uint32_t mask)
 
virtual bool createDirectory (File *parent, const String &filename, uint32_t mask)
 
virtual bool createSymlink (File *parent, const String &filename, const String &value)
 
virtual bool remove (File *parent, File *file)
 
- Protected Member Functions inherited from Filesystem
virtual bool createLink (File *parent, const String &filename, File *target)
 

Private Member Functions

 DevFs (const DevFs &)
 
DevFsoperator= (const DevFs &)
 

Private Attributes

DevFsDirectorym_pRoot
 
TextIOm_pTty
 
size_t m_NextInode
 
TextIOm_pTtys [DEVFS_NUMTTYS]
 
Filem_pTtyFiles [DEVFS_NUMTTYS]
 
size_t m_CurrentTty
 
VirtualTerminalManagerm_VtManager
 
PsAuxFilem_pPsAuxFile
 

Additional Inherited Members

- Public Types inherited from Filesystem
typedef Filesystem *(* ProbeCallback) (Disk *)
 
- Protected Attributes inherited from Filesystem
bool m_bReadOnly
 
Diskm_pDisk
 

Detailed Description

This class provides /dev

Definition at line 287 of file DevFs.h.

Member Function Documentation

virtual bool DevFs::createDirectory ( File parent,
const String filename,
uint32_t  mask 
)
inlineprotectedvirtual

createDirectory calls this after it has parsed the string path.

Implements Filesystem.

Definition at line 323 of file DevFs.h.

virtual bool DevFs::createFile ( File parent,
const String filename,
uint32_t  mask 
)
inlineprotectedvirtual

createFile calls this after it has parsed the string path.

Implements Filesystem.

Definition at line 318 of file DevFs.h.

virtual bool DevFs::createSymlink ( File parent,
const String filename,
const String value 
)
inlineprotectedvirtual

createSymlink calls this after it has parsed the string path.

Implements Filesystem.

Definition at line 328 of file DevFs.h.

virtual File* DevFs::getRoot ( ) const
inlinevirtual

Returns the root filesystem node.

Implements Filesystem.

Definition at line 298 of file DevFs.h.

virtual String DevFs::getVolumeLabel ( ) const
inlinevirtual

Returns a string identifying the volume label.

Implements Filesystem.

Definition at line 302 of file DevFs.h.

bool DevFs::initialise ( Disk pDisk)
virtual

Populates this filesystem with data from the given Disk device.

Returns
true on success, false on failure.

Implements Filesystem.

Definition at line 491 of file DevFs.cc.

References File::getName(), TextIO::initialise(), InputManager::installCallback(), InputManager::instance(), InputManager::Key, WARNING, and File::write().

virtual bool DevFs::remove ( File parent,
File file 
)
inlineprotectedvirtual

Remove a file given a parent and file, assuming path parsing already completed.

Implements Filesystem.

Definition at line 332 of file DevFs.h.


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