protected function usb()
    {
        foreach ($this->readdmesg() as $line) {
//            if (preg_match('/^(ugen[0-9\.]+): <(.*)> (.*) (.*)/', $line, $ar_buf)) {
//                    $dev->setName($ar_buf[1].": ".$ar_buf[2]);
            if (preg_match('/^(u[a-z]+[0-9]+): <([^,]*)(.*)> on (usbus[0-9]+)/', $line, $ar_buf)) {
                    $dev = new HWDevice();
                    $dev->setName($ar_buf[2]);
                    $this->sys->setUSBDevices($dev);
            }
        }
    }
protected function usb()
    {
        foreach ($this->readdmesg() as $line) {
//            if (preg_match('/^(ugen[0-9\.]+): <(.*)> (.*) (.*)/', $line, $ar_buf)) {
//                    $dev->setName($ar_buf[1].": ".$ar_buf[2]);
            if (preg_match('/^(u[a-z]+[0-9]+): <([^,]*)(.*)> on (usbus[0-9]+)/', $line, $ar_buf)) {
                    $dev = new HWDevice();
                    $dev->setName($ar_buf[2]);
                    $this->sys->setUSBDevices($dev);
            }
        }
    }
protected function usb ( ) { foreach ( $ this -> readdmesg ( ) as $ line ) { //            if (preg_match('/^(ugen[0-9\.]+): <(.*)> (.*) (.*)/', $line, $ar_buf)) { //                    $dev->setName($ar_buf[1].": ".$ar_buf[2]); if ( preg_match ( '/^(u[a-z]+[0-9]+): <([^,]*)(.*)> on (usbus[0-9]+)/' , $ line , $ ar_buf ) ) { $ dev = new HWDevice ( ) ; $ dev -> setName ( $ ar_buf [ 2 ] ) ; $ this -> sys -> setUSBDevices ( $ dev ) ; } } }
USB devices
get the ide device information out of dmesg

@return void
USB devices get the ide device information out of dmesg