Re: Devfs, was Re: Migrating to larger numbers

Guest section DW (dwguest@win.tue.nl)
Wed, 9 Jun 1999 09:22:44 +0200 (MET DST)


From: Richard Gooch <rgooch@atnf.csiro.au>

However, with devfs you can definately avoid the lookups into the
major tables. Right now that's fast because they're simple arrays. If
we go to 12 bit majors (or more), we're going to want to set them up
as lists of some kind. And that means some kind of searching/hashing.
And that's all for the benefit of finding our fops. Devfs completely
avoids this overhead.

No. A kdev_t is a pointer to a structure that has various fields.
Not:
blksize[MAJOR(dev)]
but
dev->major->blksize

Andries

-
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/