mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 08:08:12 +00:00
Kernel: Rename ProcFSComponentsRegistrar => ProcFSComponentRegistry
This matches the formatting used in SysFS.
This commit is contained in:
parent
c1143e1bae
commit
fa9111ac46
9 changed files with 28 additions and 28 deletions
|
@ -135,7 +135,7 @@ void Process::register_new(Process& process)
|
|||
RefPtr<Process> new_process = process;
|
||||
ScopedSpinLock lock(g_processes_lock);
|
||||
g_processes->prepend(process);
|
||||
ProcFSComponentsRegistrar::the().register_new_process(process);
|
||||
ProcFSComponentRegistry::the().register_new_process(process);
|
||||
}
|
||||
|
||||
RefPtr<Process> Process::create_user_process(RefPtr<Thread>& first_thread, const String& path, uid_t uid, gid_t gid, ProcessID parent_pid, int& error, Vector<String>&& arguments, Vector<String>&& environment, TTY* tty)
|
||||
|
@ -576,7 +576,7 @@ void Process::finalize()
|
|||
// If we don't do it here, we can't drop the object later, and we can't
|
||||
// do this from the destructor because the state of the object doesn't
|
||||
// allow us to take references anymore.
|
||||
ProcFSComponentsRegistrar::the().unregister_process(*this);
|
||||
ProcFSComponentRegistry::the().unregister_process(*this);
|
||||
|
||||
m_dead = true;
|
||||
|
||||
|
@ -728,7 +728,7 @@ void Process::FileDescriptionAndFlags::clear()
|
|||
void Process::FileDescriptionAndFlags::refresh_inode_index()
|
||||
{
|
||||
// FIXME: Verify Process::m_fds_lock is locked!
|
||||
m_global_procfs_inode_index = ProcFSComponentsRegistrar::the().allocate_inode_index();
|
||||
m_global_procfs_inode_index = ProcFSComponentRegistry::the().allocate_inode_index();
|
||||
}
|
||||
|
||||
void Process::FileDescriptionAndFlags::set(NonnullRefPtr<FileDescription>&& description, u32 flags)
|
||||
|
@ -736,7 +736,7 @@ void Process::FileDescriptionAndFlags::set(NonnullRefPtr<FileDescription>&& desc
|
|||
// FIXME: Verify Process::m_fds_lock is locked!
|
||||
m_description = move(description);
|
||||
m_flags = flags;
|
||||
m_global_procfs_inode_index = ProcFSComponentsRegistrar::the().allocate_inode_index();
|
||||
m_global_procfs_inode_index = ProcFSComponentRegistry::the().allocate_inode_index();
|
||||
}
|
||||
|
||||
Custody& Process::root_directory()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue