Random notes as I wrote a PCI kernel module

These are a bunch of things I jotted down as I wrote a Linux kernel module for a PCI express peripheral I developed. About kernel module Makefiles A great guide here. lspci and setpci lspci is quite well-known. What is less known, is that it can be used to get the tree structure of bridges [...]