title: Get dynamic minor number from user space program
body: <p>I am have developed simple char driver and a simple user space application. when my driver is loaded i can access it using <strong>/dev/xxx0</strong> (example). So when i load my driver next time i can see the <strong>/dev/xxx0</strong> to <strong>/dev/xxx1</strong>, so i need to make change in the user program <strong>/dev/xxx0</strong> to <strong>/dev/xxx1</strong> every time when i load the driver. Is there any way from user program to get this automatically.</p>