mirror of
https://github.com/RGBCube/serenity
synced 2025-05-22 17:15:08 +00:00
Kernel/USB: Move USB bus information from /proc to /sys
This patch moves all the USB data from /proc/bus/usb to /sys/bus/usb.
This commit is contained in:
parent
72a5347f91
commit
b975a74a1d
8 changed files with 93 additions and 80 deletions
|
@ -36,17 +36,6 @@ UNMAP_AFTER_INIT ProcFSComponentRegistry::ProcFSComponentRegistry()
|
|||
{
|
||||
}
|
||||
|
||||
const ProcFSBusDirectory& ProcFSComponentRegistry::buses_directory() const
|
||||
{
|
||||
return *m_root_directory->m_buses_directory;
|
||||
}
|
||||
|
||||
void ProcFSComponentRegistry::register_new_bus_directory(ProcFSExposedDirectory& new_bus_directory)
|
||||
{
|
||||
VERIFY(!m_root_directory->m_buses_directory.is_null());
|
||||
m_root_directory->m_buses_directory->m_components.append(new_bus_directory);
|
||||
}
|
||||
|
||||
void ProcFSComponentRegistry::register_new_process(Process& new_process)
|
||||
{
|
||||
Locker locker(m_lock);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue