question on cdevsw_add mask/match

Chuck Tuffli chuck_tuffli at agilent.com
Mon Mar 21 11:45:03 PST 2005


On Sun, Mar 20, 2005 at 11:56:45AM -0800, Matthew Dillon wrote:
[...]
>      If you give a me a filename and line number where you think the
>      cdevsw_remove() is incorrect, I will take a look at it.  The above

This is what I used as an example
    sys/dev/disk/isp/isp_freebsd.c:207

Some of the others that look similar (there are more on this list)
    sys/bus/usb/usb.c:327
    sys/dev/agp/agp.c:263
    sys/dev/disk/fd/fd.c:1030
    sys/dev/disk/wt/wt.c:269
    sys/dev/drm/drm_drv.h:657
    sys/dev/misc/dcons/dcons_os.c:611
    sys/dev/misc/gpib/gpib.c:140
    ...

One driver that might be doing things correctly is
    sys/dev/misc/psm/psm.c:1254
(see definition of PSM_MKMINOR at line 133)

-- 
Chuck Tuffli
Agilent Technologies





More information about the Kernel mailing list