Re: Unknown error

From: Rogier Wolff (R.E.Wolff@BitWizard.nl)
Date: Sun Aug 12 2001 - 14:55:45 EST


Alan Cox wrote:
> > 2.4.8 says that device 228 is unassigned, but ...
> >
> > drivers/char/drm/drm.h:#define DRM_MAJOR 226
> > drivers/net/wan/sdla_chdlc.c:#define WAN_TTY_MAJOR 226
> >
> > Somebody has been naughty and used a code not assigned to them.

> 226 char Direct Rendering Infrastructure (DRI)
> 0 = /dev/dri/card0 First graphics card
> 1 = /dev/dri/card1 Second graphics card
>
>
> Peter - was this dual issued, or do Sangoma need to be spanked. The obvious
> place to put the sdla tty would I think be 229, since its not physically
> possible to put one in an iSeries machine.

Speaking of which...

I always (try to) write my drivers to do:

#ifndef MY_MAJOR
#define MY_MAJOR xyz
#endif

This allows "test-compilation" with -Dtest_major , but is also
preparing for having a "majors.h" which defines ALL the major numbers
in one place. The place where it /completly/ obvious if two devices
are trying to use the same major....

                        Roger.

-- 
** R.E.Wolff@BitWizard.nl ** http://www.BitWizard.nl/ ** +31-15-2137555 **
*-- BitWizard writes Linux device drivers for any device you may have! --*
* There are old pilots, and there are bold pilots. 
* There are also old, bald pilots. 
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Aug 15 2001 - 21:00:44 EST