NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

kern/38740: DRVSUSPENDDEV and DRVCTLCOMMAND share the same ioctl number



>Number:         38740
>Category:       kern
>Synopsis:       DRVSUSPENDDEV and DRVCTLCOMMAND share the same ioctl number
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun May 25 12:40:00 +0000 2008
>Originator:     Jared D. McNeill
>Release:        NetBSD 4.99.63
>Organization:
        
>Environment:
        
        
System: NetBSD black.invisible.ca 4.99.63 NetBSD 4.99.63 (GENERIC) #35: Sun May 
25 08:22:17 EDT 2008 
jmcneill%black.invisible.ca@localhost:/export/home/jmcneill/scratch/obj/sys/arch/amd64/compile/GENERIC
 amd64
Architecture: x86_64
Machine: amd64
>Description:
        DRVSUSPENDDEV and DRVCTLCOMMAND ioctls should not share the same
        ioctl number:

$ grep _IO drvctlio.h
#define DRVDETACHDEV _IOW('D', 123, struct devdetachargs)
#define DRVRESCANBUS _IOW('D', 124, struct devrescanargs)
#define DRVSUSPENDDEV _IOW('D', 125, struct devpmargs)
#define DRVRESUMEDEV _IOW('D', 126, struct devpmargs)
#define DRVLISTDEV _IOWR('D', 127, struct devlistargs)
#define DRVGETEVENT _IOR('D', 128, struct plistref)
#define DRVCTLCOMMAND _IOWR('D', 125, struct plistref)

>How-To-Repeat:
        
>Fix:
        DRVDETACHDEV, DRVRESCANBUS, and DRVCTLCOMMAND were present in 4.0
        so DRVSUSPENDDEV needs to be assigned a new number.

>Unformatted:
        
        


Home | Main Index | Thread Index | Old Index