[dpdk-dev] [PATCH 1/2] pci: split the function providing uio device and mappings

Thomas Monjalon thomas.monjalon at 6wind.com
Tue Jan 28 16:35:35 CET 2014


24/01/2014 16:31, Olivier Matz:
> Add a new function pci_get_uio_dev() that parses /sys/bus/pci/devices
> to get the uio device associated with a PCI device. This patch just
> moves some code that was in pci_uio_map_resource() in the new function
> without any functional change.
> 
> Thanks to this change, the next commit will be easier to understand.
> Moreover it improves readability: having smaller functions help to
> understand what pci_uio_map_resource() does.
> 
> Signed-off-by: Olivier Matz <olivier.matz at 6wind.com>

Acked and applied.

-- 
Thomas


More information about the dev mailing list