This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How to create dev entry of dynamically allocted devices?

Dear experts,

Probably I missed something, but I am confused how the major numbers of the driver are associated with the DM355 IPIPE, AEW, and AF module. I understood from the source code, that the major number is allocated dynamically. But how can I create a corrsponding entry in the /dev directory? Up to now, I did this with the mknod command in the /etc/init.d/rcS. e.g.

mknod -m 666 /dev/dm355_aew c 252 0
mknod -m 666 /dev/dm355_af c 253 0
mknod -m 666 /dev/dm355_ipipe c 254 0

However, because the major numbers are allocated dynamically, the numbers might change, and I end up with a mismatch of major number and dev entry and a crash of my system.

Thus, my questions

- do I have to create a entry in  /dev directory for the dynamically allocated IPIPE, AEW, and AF modules?
- if yes, how can I do that other than with mknod in the rcS file?

Any help would be appreciated.

Thanks, Stefan