I have several processes in my Linux environment that must use the same device driver to access a number of similar devices. My problem is that if one process instantly passes the device (through the instance, I mean the mknod file) and uses the lowest number, say 0 and 1 for two devices. So how does another process, doing the same, find out which minor number to use?
In short, in the application space, you can find the number of device files that use the same driver?
source
share