summaryrefslogtreecommitdiff
path: root/sys/kern/kern_conf.c
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>1999-08-15 09:32:47 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>1999-08-15 09:32:47 +0000
commit9a27d57978a5ee08b6613f323c8d11c341f65527 (patch)
treec759cf7e54bc6d92364a64a373f7b7a5596965ca /sys/kern/kern_conf.c
parent2ce66fb320915b65599641954ab7ec4240a3a2cd (diff)
Notes
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 a3fedc13b928..7be808ea6bc6 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)
{