mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-26 21:36:27 -05:00
move private members below public members
This commit is contained in:
parent
4bdacdedc1
commit
e10903cab9
1 changed files with 11 additions and 10 deletions
|
@ -22,15 +22,6 @@ class KCodeMemory final
|
||||||
: public KAutoObjectWithSlabHeapAndContainer<KCodeMemory, KAutoObjectWithList> {
|
: public KAutoObjectWithSlabHeapAndContainer<KCodeMemory, KAutoObjectWithList> {
|
||||||
KERNEL_AUTOOBJECT_TRAITS(KCodeMemory, KAutoObject);
|
KERNEL_AUTOOBJECT_TRAITS(KCodeMemory, KAutoObject);
|
||||||
|
|
||||||
private:
|
|
||||||
KPageLinkedList m_page_group;
|
|
||||||
KProcess* m_owner;
|
|
||||||
VAddr m_address;
|
|
||||||
KLightLock m_lock;
|
|
||||||
bool m_is_initialized;
|
|
||||||
bool m_is_owner_mapped;
|
|
||||||
bool m_is_mapped;
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit KCodeMemory(KernelCore& kernel_);
|
explicit KCodeMemory(KernelCore& kernel_);
|
||||||
|
|
||||||
|
@ -56,5 +47,15 @@ public:
|
||||||
size_t GetSize() const {
|
size_t GetSize() const {
|
||||||
return m_is_initialized ? m_page_group.GetNumPages() * PageSize : 0;
|
return m_is_initialized ? m_page_group.GetNumPages() * PageSize : 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private:
|
||||||
|
KPageLinkedList m_page_group;
|
||||||
|
KProcess* m_owner;
|
||||||
|
VAddr m_address;
|
||||||
|
KLightLock m_lock;
|
||||||
|
bool m_is_initialized;
|
||||||
|
bool m_is_owner_mapped;
|
||||||
|
bool m_is_mapped;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace Kernel
|
} // namespace Kernel
|
Loading…
Reference in a new issue