EmbLogic's Blog

uninterpretable results if I try to print minor number in open function

the obvious thought which comes in everybody’s mind is that when we give major and minor number at the time of mknod ,the device being opened is the one with the given minor number….i am also thinking the same…but discrepancy occurs when i print the minor number in the open function…if i give minor number 2 at the time of mknod then the minor number being printed in the open function is 4 onot 2….major number is always printed correctly ie 250 but not the minor number.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>