|
The Pedigree Project
0.1
|
#include <ProcFs.h>
Inheritance diagram for ProcFs:
Collaboration diagram for ProcFs:Public Member Functions | |
| virtual bool | initialise (Disk *pDisk) |
| virtual File * | getRoot () const |
| virtual String | getVolumeLabel () const |
| virtual size_t | getNextInode () |
| virtual void | revertInode () |
| void | addProcess (PosixProcess *proc) |
| void | removeProcess (PosixProcess *proc) |
Public Member Functions inherited from Filesystem | |
| Filesystem () | |
| virtual | ~Filesystem () |
| virtual File * | find (const StringView &path) |
| virtual File * | find (const String &path) |
| virtual File * | find (const StringView &path, File *pStartNode) |
| virtual File * | find (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) |
| Disk * | getDisk () |
| 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 | |
| ProcFs (const ProcFs &) | |
| ProcFs & | operator= (const ProcFs &) |
Private Attributes | |
| ProcFsDirectory * | m_pRoot |
| Tree< size_t, ProcFsDirectory * > | m_pProcessDirectories |
| size_t | m_NextInode |
| String | m_PciDevices |
Additional Inherited Members | |
Public Types inherited from Filesystem | |
| typedef Filesystem *(* | ProbeCallback) (Disk *) |
Protected Attributes inherited from Filesystem | |
| bool | m_bReadOnly |
| Disk * | m_pDisk |
| void ProcFs::addProcess | ( | PosixProcess * | proc | ) |
Definition at line 555 of file ProcFs.cc.
References Process::getGroup(), Group::getId(), User::getId(), Process::getId(), and Process::getUser().
Referenced by PosixProcess::getType().
Here is the caller graph for this function:
|
inlineprotectedvirtual |
createDirectory calls this after it has parsed the string path.
Implements Filesystem.
|
inlineprotectedvirtual |
createFile calls this after it has parsed the string path.
Implements Filesystem.
|
inlineprotectedvirtual |
createSymlink calls this after it has parsed the string path.
Implements Filesystem.
|
inlinevirtual |
|
inlinevirtual |
Returns a string identifying the volume label.
Implements Filesystem.
|
virtual |
Populates this filesystem with data from the given Disk device.
Implements Filesystem.
Definition at line 379 of file ProcFs.cc.
References VFS::find(), Device::foreach(), Directory::fromFile(), File::getName(), VFS::instance(), String::m_Size, and NOTICE.
Remove a file given a parent and file, assuming path parsing already completed.
Implements Filesystem.
| void ProcFs::removeProcess | ( | PosixProcess * | proc | ) |
Definition at line 582 of file ProcFs.cc.
References Process::getId().
Referenced by PosixProcess::getType().
Here is the caller graph for this function:
1.8.11