Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I find out what is the driver for device node '/dev/video11'

Tags:

linux

In linux kernel, a device (e.g. camera) can register as a file (e.g. /dev/video11). How can I find out from the code which driver is registered as /dev/video11. i.e. what is the driver will be invoked when I open('/dev/video11', O_RDWR,0) in my user space code?

If I can only search within the code space, how can I find out which driver is for /dev/video11?

Is there a config file which I can look it up?

like image 533
michael Avatar asked Oct 25 '25 23:10

michael


1 Answers

Checkout a very similar question on the Unix & Linux StackExchange.

For your device, parsing the output of this command may help.

$  udevadm info -a -n /dev/video11
like image 79
rickhg12hs Avatar answered Oct 28 '25 19:10

rickhg12hs



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!