Subject: None
To: NetBSD bugs <netbsd-bugs@NetBSD.ORG>
From: Barclay, Alex <alex@mlbg79.btlabsmh.bt.co.uk>
List: netbsd-bugs
Date: 01/18/1995 15:44:00
>Submitter-Id: net
>Originator: Alex Barclay
>Organization:
>Confidential: no
>Synopsis: inconsistiency with lkm when no device present
>Severity: non-critical
>Priority: low
>Category: kern
>Class: change-request
>Release: 9/1/1995
>Environment:
System: NetBSD portcullis.mavericks.bt.co.uk 1.0A NetBSD 1.0A (PCLS.NEW) #8:
Mon Jan 9 15:26:52 GMT 1995
root@portcullis.mavericks.bt.co.uk:/usr/src/sys/arch/i386/compile/PCLS.NEW
i386
>Description:
If you access a device that doesn't exist eg block major 100 you get the
error ENXIO (Device not configured), if however you access an unused lkm
slot you get ENODEV (Operation not supported by device). This is
inconsistent.
>How-To-Repeat:
>Fix:
change lkmenodev to lkmenxio and change return from ENODEV to ENXIO in
/kern/kern_lkm.c and arch/i386/i386/conf.c changes also probably required
in other architectures.