summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_conf.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/kern_conf.c')
-rw-r--r--sys/kern/kern_conf.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/sys/kern/kern_conf.c b/sys/kern/kern_conf.c
index a3fedc1..7be808e 100644
--- a/sys/kern/kern_conf.c
+++ b/sys/kern/kern_conf.c
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: kern_conf.c,v 1.55 1999/08/08 18:42:47 phk Exp $
+ * $Id: kern_conf.c,v 1.56 1999/08/13 10:29:20 phk Exp $
*/
#include <sys/param.h>
@@ -194,6 +194,17 @@ minor(dev_t x)
return(x->si_udev & 0xffff00ff);
}
+int
+lminor(dev_t x)
+{
+ int i;
+
+ if (x == NODEV)
+ return NOUDEV;
+ i = minor(x);
+ return ((i & 0xff) | (i >> 8));
+}
+
dev_t
makebdev(int x, int y)
{
OpenPOWER on IntegriCloud