Use drmGetDevices to list nodes
There's no guarantee that DRM primary nodes start at card0. I've run into a system where the first card is card1 (probably because the driver has been unloaded/reloaded?). Because of this drm_info wasn't dumping any data.
Instead, we can use drmGetDevices which returns a list of DRM devices and nodes available on the system.