c
#include <assert.h> // Make sure assert is included

struct pci_dn *PCI_DN(dn){
    assert(dn != NULL); // Halt execution if dn is NULL
    return ((struct pci_dn *) (dn)->data);
}
