Reputation: 61
I use PCAN Driver for Linux v8 developed by PEAK SYSTEMS.
After successful compilation when tried to load the Linux Kernel Module (LKM) named pcan
sudo modprobe pcan
lspcan -T -t -a
Devices are not getting displayed under /dev
Note: I have not connected actual device or hardware in my PC.
Is it expected behavior? Or regardless of actual device connection, those should get displayed? Which is expected behavior?
Reason why I am asking is, when doing insmod
with my own LKM, I got the devices under /dev
.
Upvotes: 0
Views: 1510
Reputation: 4509
It is possible that PCAN driver doesn't create entry in /dev on its own, and you need to do it manually. Not every driver creates those files automatically. Try to look at /proc/devices file if there is the device you are expecting. If yes - try to create appropriate device node in /dev using mknod.
Edit: If you have no connected device in your PC - how driver could recognize it and create appropriate files in /dev?
Upvotes: 0
Reputation: 26196
Is it expected behavior? Or regardless of actual device connection, those should get displayed? Which is expected behavior?
In general, a driver should only create the /dev
entries for devices that it is actually handling.
Since you don't have the hardware, it is normal that the driver did not create anything.
Upvotes: 1