mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 14:38:11 +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
|
@ -21,6 +21,17 @@ public:
|
|||
|
||||
private:
|
||||
SysFSRootDirectory();
|
||||
RefPtr<SysFSBusDirectory> m_buses_directory;
|
||||
};
|
||||
|
||||
class SysFSBusDirectory : public SysFSDirectory {
|
||||
friend class SysFSComponentRegistry;
|
||||
|
||||
public:
|
||||
static NonnullRefPtr<SysFSBusDirectory> must_create(SysFSRootDirectory const&);
|
||||
|
||||
private:
|
||||
explicit SysFSBusDirectory(SysFSRootDirectory const&);
|
||||
};
|
||||
|
||||
class SysFSComponentRegistry {
|
||||
|
@ -35,6 +46,9 @@ public:
|
|||
SysFSDirectory& root_directory() { return m_root_directory; }
|
||||
Mutex& get_lock() { return m_lock; }
|
||||
|
||||
void register_new_bus_directory(SysFSDirectory&);
|
||||
SysFSBusDirectory& buses_directory();
|
||||
|
||||
private:
|
||||
Mutex m_lock;
|
||||
NonnullRefPtr<SysFSRootDirectory> m_root_directory;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue