lkml.org 
[lkml]   [1999]   [Jun]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Migrating to larger numbers

On Tue, Jun 08, 1999 at 03:46:50PM +0200, Jamie Lokier wrote:
> Matt Aubury wrote:
> > -- Do dynamic major allocation in the usual way.
>
> Can you do reliable dynamic major allocation?
> I didn't see any majors reserved for this.

Sadly it appears that there aren't (although I got a different
impression from Rubini's book). The major numbers are allocated
backwards from (MAX_CHRDEV-1).

> The major you pick might be one that is statically allocated by
> a device to be loaded later.

Possibly, but in that case it shouldn't be my driver at fault: the
allocations are done from a range marked "LOCAL/EXPERIMENTAL" in
devices.txt. Unfortunately, as it stands the dynamic allocation code
has major 0 as its lower bound :-/

A sensible policy, IMHO, would be to mark this upper range as
dedicated to dynamic allocation. It's only a documentation issue then.

Cheers,
Matt


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:52    [W:0.203 / U:0.072 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site