samedi 10 janvier 2015

Does programmer use device files as interface to device drivers in their programs?


In Linux shell, a user can access a device driver, via its device file as the interface.


When a Linux C programmer want to access a driver in his C program, does he also access the driver, via its device file as the interface?


In other words, is a device file an interface to a device driver only in shell but not in a C program, or in both?


Thanks.





Aucun commentaire:

Enregistrer un commentaire