Function poplar::syscall::pci::pci_get_info

source ·
pub fn pci_get_info(
    buffer_ptr: *mut PciDeviceInfo,
    buffer_size: usize
) -> Result<usize, PciGetInfoError>
Expand description

Makes a raw pci_get_info system call, given a pointer to a buffer and the size of the buffer. On success, returns the number of entries written into the buffer. For a nicer interface to this system call, see pci_get_info_slice or pci_get_info_vec.