mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 13:47:35 +00:00
Implement /proc/PID/vm.
Refactored SyntheticFileSystem to maintain an arbitrary directory structure. ProcFileSystem creates a directory entry in /proc for each new process.
This commit is contained in:
parent
10347b9ae8
commit
a32b3a3ddf
15 changed files with 217 additions and 39 deletions
|
@ -2,6 +2,7 @@
|
|||
|
||||
#include "StdLib.h"
|
||||
#include "Types.h"
|
||||
#include "Traits.h"
|
||||
|
||||
namespace AK {
|
||||
|
||||
|
@ -96,6 +97,12 @@ make(Args&&... args)
|
|||
return OwnPtr<T>(new T(forward<Args>(args)...));
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
struct Traits<OwnPtr<T>> {
|
||||
static unsigned hash(const OwnPtr<T>& p) { return (unsigned)p.ptr(); }
|
||||
static void dump(const OwnPtr<T>& p) { kprintf("%p", p.ptr()); }
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
using AK::OwnPtr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue