mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-25 15:39:55 +00:00
Kernel: Make Custody slab-allocated
This commit is contained in:
parent
ba83bf8a0d
commit
6428669a37
Notes:
sideshowbarker
2024-07-19 09:10:14 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/6428669a37a
1 changed files with 6 additions and 1 deletions
|
@ -31,13 +31,18 @@
|
|||
#include <AK/RefPtr.h>
|
||||
#include <AK/String.h>
|
||||
#include <Kernel/Forward.h>
|
||||
#include <Kernel/Heap/SlabAllocator.h>
|
||||
|
||||
namespace Kernel {
|
||||
|
||||
// FIXME: Custody needs some locking.
|
||||
|
||||
class Custody : public RefCounted<Custody>
|
||||
class Custody
|
||||
: public RefCounted<Custody>
|
||||
, public InlineLinkedListNode<Custody> {
|
||||
|
||||
MAKE_SLAB_ALLOCATED(Custody)
|
||||
|
||||
public:
|
||||
static Custody* get_if_cached(Custody* parent, const StringView& name);
|
||||
static NonnullRefPtr<Custody> get_or_create(Custody* parent, const StringView& name, Inode&, int mount_flags);
|
||||
|
|
Loading…
Reference in a new issue