mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 08:54:58 +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
|
@ -23,7 +23,7 @@ int main(int argc, char** argv)
|
|||
return 1;
|
||||
}
|
||||
|
||||
if (unveil("/proc/bus/usb", "r") < 0) {
|
||||
if (unveil("/sys/bus/usb", "r") < 0) {
|
||||
perror("unveil");
|
||||
return 1;
|
||||
}
|
||||
|
@ -42,7 +42,7 @@ int main(int argc, char** argv)
|
|||
args.set_general_help("List USB devices.");
|
||||
args.parse(argc, argv);
|
||||
|
||||
Core::DirIterator usb_devices("/proc/bus/usb", Core::DirIterator::SkipDots);
|
||||
Core::DirIterator usb_devices("/sys/bus/usb", Core::DirIterator::SkipDots);
|
||||
|
||||
RefPtr<USBDB::Database> usb_db = USBDB::Database::open();
|
||||
if (!usb_db) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue