mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-10 18:10:56 +09:00
Kernel: Rename Process::space() => Process::address_space()
We commonly talk about "a process's address space" so let's nudge the code towards matching how we talk about it. :^)
This commit is contained in:
parent
b7476d7a1b
commit
208147c77c
Notes:
sideshowbarker
2024-07-18 07:24:50 +09:00
Author: https://github.com/awesomekling
Commit: 208147c77c
24 changed files with 80 additions and 80 deletions
|
@ -39,7 +39,7 @@ OwnPtr<CoreDump> CoreDump::create(NonnullRefPtr<Process> process, const String&
|
|||
CoreDump::CoreDump(NonnullRefPtr<Process> process, NonnullRefPtr<FileDescription>&& fd)
|
||||
: m_process(move(process))
|
||||
, m_fd(move(fd))
|
||||
, m_num_program_headers(m_process->space().region_count() + 1) // +1 for NOTE segment
|
||||
, m_num_program_headers(m_process->address_space().region_count() + 1) // +1 for NOTE segment
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -120,7 +120,7 @@ KResult CoreDump::write_elf_header()
|
|||
KResult CoreDump::write_program_headers(size_t notes_size)
|
||||
{
|
||||
size_t offset = sizeof(ElfW(Ehdr)) + m_num_program_headers * sizeof(ElfW(Phdr));
|
||||
for (auto& region : m_process->space().regions()) {
|
||||
for (auto& region : m_process->address_space().regions()) {
|
||||
ElfW(Phdr) phdr {};
|
||||
|
||||
phdr.p_type = PT_LOAD;
|
||||
|
@ -161,7 +161,7 @@ KResult CoreDump::write_program_headers(size_t notes_size)
|
|||
|
||||
KResult CoreDump::write_regions()
|
||||
{
|
||||
for (auto& region : m_process->space().regions()) {
|
||||
for (auto& region : m_process->address_space().regions()) {
|
||||
if (region->is_kernel())
|
||||
continue;
|
||||
|
||||
|
@ -255,7 +255,7 @@ ByteBuffer CoreDump::create_notes_regions_data() const
|
|||
{
|
||||
ByteBuffer regions_data;
|
||||
size_t region_index = 0;
|
||||
for (auto& region : m_process->space().regions()) {
|
||||
for (auto& region : m_process->address_space().regions()) {
|
||||
|
||||
ByteBuffer memory_region_info_buffer;
|
||||
ELF::Core::MemoryRegionInfo info {};
|
||||
|
@ -319,7 +319,7 @@ ByteBuffer CoreDump::create_notes_segment_data() const
|
|||
|
||||
KResult CoreDump::write()
|
||||
{
|
||||
ScopedSpinLock lock(m_process->space().get_lock());
|
||||
ScopedSpinLock lock(m_process->address_space().get_lock());
|
||||
ProcessPagingScope scope(m_process);
|
||||
|
||||
ByteBuffer notes_segment = create_notes_segment_data();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue