Nguyễn Tuấn Dương
New member
What is Mkdev in Linux?
Answer
Given two integers, MKDEV combines them into
one 32 bit number. This is done by left shifting the major number MINORBIT times i.e. 20 times and then oring the result with the minor number. For e.g. if the major number is 2 => 000010 and the minor number is 1 => 000001. Then left shift 2, 4 times.
Answer
Given two integers, MKDEV combines them into
one 32 bit number. This is done by left shifting the major number MINORBIT times i.e. 20 times and then oring the result with the minor number. For e.g. if the major number is 2 => 000010 and the minor number is 1 => 000001. Then left shift 2, 4 times.