mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:37:35 +00:00
Add a kmalloc_eternal() for things that will never be destroyed.
This commit is contained in:
parent
d980ddc745
commit
9a086b2d35
20 changed files with 85 additions and 20 deletions
|
@ -3,6 +3,7 @@
|
|||
#include "CharacterDevice.h"
|
||||
|
||||
class FullDevice final : public CharacterDevice {
|
||||
AK_MAKE_ETERNAL
|
||||
public:
|
||||
FullDevice();
|
||||
virtual ~FullDevice();
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
#include "CharacterDevice.h"
|
||||
|
||||
class NullDevice final : public CharacterDevice {
|
||||
AK_MAKE_ETERNAL
|
||||
public:
|
||||
NullDevice();
|
||||
virtual ~NullDevice() override;
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
#include "CharacterDevice.h"
|
||||
|
||||
class RandomDevice final : public CharacterDevice {
|
||||
AK_MAKE_ETERNAL
|
||||
public:
|
||||
RandomDevice();
|
||||
virtual ~RandomDevice() override;
|
||||
|
|
|
@ -28,6 +28,7 @@ inline constexpr dword encodedDevice(unsigned major, unsigned minor)
|
|||
}
|
||||
|
||||
class VirtualFileSystem {
|
||||
AK_MAKE_ETERNAL
|
||||
public:
|
||||
static void initializeGlobals();
|
||||
static SpinLock& lock();
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
#include "CharacterDevice.h"
|
||||
|
||||
class ZeroDevice final : public CharacterDevice {
|
||||
AK_MAKE_ETERNAL
|
||||
public:
|
||||
ZeroDevice();
|
||||
virtual ~ZeroDevice() override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue