protected function pci()
    {
        if (!$arrResults = Parser::lspci(false)) { //no lspci port
            $s = $this->_grabioreg('IOPCIDevice');
            $lines = preg_split("/\n/", $s, -1, PREG_SPLIT_NO_EMPTY);
            foreach ($lines as $line) {
                $dev = new HWDevice();
                if (!preg_match('/"IOName" = "([^"]*)"/', $line, $ar_buf)) {
                    $ar_buf = preg_split("/[\s@]+/", $line, 19);
                }
                if (preg_match('/"model" = <?"([^"]*)"/', $line, $ar_buf2)) {
                    $dev->setName(trim($ar_buf[1]). ": ".trim($ar_buf2[1]));
                } else {
                    $dev->setName(trim($ar_buf[1]));
                }
                $this->sys->setPciDevices($dev);
            }
        } else {
            foreach ($arrResults as $dev) {
                $this->sys->setPciDevices($dev);
            }
        }
    }
protected function pci()
    {
        if (!$arrResults = Parser::lspci(false)) { //no lspci port
            $s = $this->_grabioreg('IOPCIDevice');
            $lines = preg_split("/\n/", $s, -1, PREG_SPLIT_NO_EMPTY);
            foreach ($lines as $line) {
                $dev = new HWDevice();
                if (!preg_match('/"IOName" = "([^"]*)"/', $line, $ar_buf)) {
                    $ar_buf = preg_split("/[\s@]+/", $line, 19);
                }
                if (preg_match('/"model" = <?"([^"]*)"/', $line, $ar_buf2)) {
                    $dev->setName(trim($ar_buf[1]). ": ".trim($ar_buf2[1]));
                } else {
                    $dev->setName(trim($ar_buf[1]));
                }
                $this->sys->setPciDevices($dev);
            }
        } else {
            foreach ($arrResults as $dev) {
                $this->sys->setPciDevices($dev);
            }
        }
    }
protected function pci ( ) { if ( ! $ arrResults = Parser :: lspci ( false ) ) { //no lspci port $ s = $ this -> _grabioreg ( 'IOPCIDevice' ) ; $ lines = preg_split ( "/\n/" , $ s , - 1 , PREG_SPLIT_NO_EMPTY ) ; foreach ( $ lines as $ line ) { $ dev = new HWDevice ( ) ; if ( ! preg_match ( '/"IOName" = "([^"]*)"/' , $ line , $ ar_buf ) ) { $ ar_buf = preg_split ( "/[\s@]+/" , $ line , 19 ) ; } if ( preg_match ( '/"model" = <?"([^"]*)"/' , $ line , $ ar_buf2 ) ) { $ dev -> setName ( trim ( $ ar_buf [ 1 ] ) . ": " . trim ( $ ar_buf2 [ 1 ] ) ) ; } else { $ dev -> setName ( trim ( $ ar_buf [ 1 ] ) ) ; } $ this -> sys -> setPciDevices ( $ dev ) ; } } else { foreach ( $ arrResults as $ dev ) { $ this -> sys -> setPciDevices ( $ dev ) ; } } }
get the pci device information out of ioreg

@return void
get the pci device information out of ioreg