diff options
| author | Leandro A. F. Pereira <leandro@hardinfo.org> | 2008-11-01 21:03:18 -0200 | 
|---|---|---|
| committer | Leandro A. F. Pereira <leandro@hardinfo.org> | 2008-11-01 21:03:18 -0200 | 
| commit | 4d990378aecf6a692b7e0c4d4a910dac900a344d (patch) | |
| tree | 4875a71671906287c093c5123775a964570b01d1 /hardinfo2/arch/linux/common | |
| parent | bc6264002ea1c7d6b084ece594c3fe8382c5e22b (diff) | |
Show kernel modules being used by PCI devices
Diffstat (limited to 'hardinfo2/arch/linux/common')
| -rw-r--r-- | hardinfo2/arch/linux/common/pci.h | 6 | 
1 files changed, 6 insertions, 0 deletions
| diff --git a/hardinfo2/arch/linux/common/pci.h b/hardinfo2/arch/linux/common/pci.h index ada3118b..7358090a 100644 --- a/hardinfo2/arch/linux/common/pci.h +++ b/hardinfo2/arch/linux/common/pci.h @@ -99,6 +99,12 @@ __scan_pci(void)  		strdevice = h_strdup_cprintf("Latency=%d\n", strdevice, latency);  	    strdevice = h_strdup_cprintf("Bus Master=%s\n", strdevice, bus_master ? "Yes" : "No"); +	} else if (!strncmp(buf, "Kernel modules", 14)) { +	    WALK_UNTIL(' '); +	    WALK_UNTIL(':'); +	    buf++; +	     +	    strdevice = h_strdup_cprintf("Kernel modules=%s\n", strdevice, buf);  	} else if (!strncmp(buf, "Subsystem", 9)) {  	    WALK_UNTIL(' ');  	    buf++; | 
