comedi_get_driver_name man page
comedi_get_driver_name — Comedi driver name
char * comedi_get_driver_name (comedi_t * device);
The function comedi_get_driver_name returns a pointer to a string containing the name of the driver being used by comedi for the comedi device represented by device. This pointer is valid until the device is closed. This function returns NULL if there is an error.