mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 08:22:45 +00:00 
			
		
		
		
	 cb900006b9
			
		
	
	
		cb900006b9
		
	
	
	
	
		
			
			I tested the grub image under VirtualBox and it appeared that the image didn't have pci.ids file included in the /res directory. In that case it would be expected that lspci can still function correctly if the -n parameter is passed, but then the unveil syscall failed because the file didn't exist. To cope with this, we should allow lspci to work without the pci.ids file being present at the filesystem, so let's not unveil this file if the -n parameter is passed.
		
			
				
	
	
		
			30 lines
		
	
	
	
		
			635 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
	
		
			635 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
| ## Name
 | |
| 
 | |
| lspci - list connected PCI devices
 | |
| 
 | |
| ## Synopsis
 | |
| 
 | |
| ```**sh
 | |
| $ lspci
 | |
| ```
 | |
| 
 | |
| ## Description
 | |
| 
 | |
| lspci is a utility for displaying information about PCI buses in the system
 | |
| and devices connected to them. It shows a brief list of devices.
 | |
| 
 | |
| ## Options
 | |
| 
 | |
| * `-n`, `--numerical`: Don't try to resolve numerical PCI IDs. This is useful when
 | |
| there is a need to see the actual PCI IDs, or if `/res/pci.ids` file is not available.
 | |
| 
 | |
| ## Files
 | |
| 
 | |
| * `/sys/bus/pci` - source of the PCI devices list.
 | |
| * `/res/pci.ids` - a database of PCI identifiers used to match available devices to their vendor, device and class names.
 | |
| 
 | |
| ## Examples
 | |
| 
 | |
| ```sh
 | |
| $ lspci
 | |
| ```
 |