mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 19:27:45 +00:00
Kernel: Remove all uses of MAKE_SLAB_ALLOCATED()
Objects that were previously allocated via slab_alloc()/slab_dealloc() now go through kmalloc()/kfree_sized() instead.
This commit is contained in:
parent
2a5cff232b
commit
43099fb387
4 changed files with 0 additions and 5 deletions
|
@ -20,7 +20,6 @@ namespace Kernel {
|
||||||
// FIXME: Custody needs some locking.
|
// FIXME: Custody needs some locking.
|
||||||
|
|
||||||
class Custody : public RefCountedBase {
|
class Custody : public RefCountedBase {
|
||||||
MAKE_SLAB_ALLOCATED(Custody)
|
|
||||||
public:
|
public:
|
||||||
bool unref() const;
|
bool unref() const;
|
||||||
|
|
||||||
|
|
|
@ -24,7 +24,6 @@ public:
|
||||||
};
|
};
|
||||||
|
|
||||||
class OpenFileDescription : public RefCounted<OpenFileDescription> {
|
class OpenFileDescription : public RefCounted<OpenFileDescription> {
|
||||||
MAKE_SLAB_ALLOCATED(OpenFileDescription)
|
|
||||||
public:
|
public:
|
||||||
static ErrorOr<NonnullRefPtr<OpenFileDescription>> try_create(Custody&);
|
static ErrorOr<NonnullRefPtr<OpenFileDescription>> try_create(Custody&);
|
||||||
static ErrorOr<NonnullRefPtr<OpenFileDescription>> try_create(File&);
|
static ErrorOr<NonnullRefPtr<OpenFileDescription>> try_create(File&);
|
||||||
|
|
|
@ -32,7 +32,6 @@ class Region final
|
||||||
: public Weakable<Region> {
|
: public Weakable<Region> {
|
||||||
friend class MemoryManager;
|
friend class MemoryManager;
|
||||||
|
|
||||||
MAKE_SLAB_ALLOCATED(Region)
|
|
||||||
public:
|
public:
|
||||||
enum Access : u8 {
|
enum Access : u8 {
|
||||||
None = 0,
|
None = 0,
|
||||||
|
|
|
@ -46,8 +46,6 @@ private:
|
||||||
explicit WorkQueue(StringView);
|
explicit WorkQueue(StringView);
|
||||||
|
|
||||||
struct WorkItem {
|
struct WorkItem {
|
||||||
MAKE_SLAB_ALLOCATED(WorkItem);
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
IntrusiveListNode<WorkItem> m_node;
|
IntrusiveListNode<WorkItem> m_node;
|
||||||
Function<void()> function;
|
Function<void()> function;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue