freebsd-skq/sys/i386/linux
Poul-Henning Kamp bfbb9ce670 Divorce "dev_t" from the "major|minor" bitmap, which is now called
udev_t in the kernel but still called dev_t in userland.

Provide functions to manipulate both types:
        major()         umajor()
        minor()         uminor()
        makedev()       umakedev()
        dev2udev()      udev2dev()

For now they're functions, they will become in-line functions
after one of the next two steps in this process.

Return major/minor/makedev to macro-hood for userland.

Register a name in cdevsw[] for the "filedescriptor" driver.

In the kernel the udev_t appears in places where we have the
major/minor number combination, (ie: a potential device: we
may not have the driver nor the device), like in inodes, vattr,
cdevsw registration and so on, whereas the dev_t appears where
we carry around a reference to a actual device.

In the future the cdevsw and the aliased-from vnode will be hung
directly from the dev_t, along with up to two softc pointers for
the device driver and a few houskeeping bits.  This will essentially
replace the current "alias" check code (same buck, bigger bang).

A little stunt has been provided to try to catch places where the
wrong type is being used (dev_t vs udev_t), if you see something
not working, #undef DEVT_FASCIST in kern/kern_conf.c and see if
it makes a difference.  If it does, please try to track it down
(many hands make light work) or at least try to reproduce it
as simply as possible, and describe how to do that.

Without DEVT_FASCIST I belive this patch is a no-op.

Stylistic/posixoid comments about the userland view of the <sys/*.h>
files welcome now, from userland they now contain the end result.

Next planned step: make all dev_t's refer to the same devsw[] which
means convert BLK's to CHR's at the perimeter of the vnodes and
other places where they enter the game (bootdev, mknod, sysctl).
1999-05-11 19:55:07 +00:00
..
imgact_linux.c Fix a couple of warnings and some bitrot in comments. 1999-05-09 16:04:14 +00:00
linux_dummy.c Reviewed by: Luoqi Chen, Jordan Hubbard 1998-12-19 02:55:34 +00:00
linux_file.c Divorce "dev_t" from the "major|minor" bitmap, which is now called 1999-05-11 19:55:07 +00:00
linux_genassym.c Enable vmspace sharing on SMP. Major changes are, 1999-04-28 01:04:33 +00:00
linux_ioctl.c Fix a couple of warnings and some bitrot in comments. 1999-05-09 16:04:14 +00:00
linux_ipc.c ".. x11amp appears to be calling shmctl(id, IPC_RMID, 0) and the emulation 1998-06-02 12:38:31 +00:00
linux_locore.s Enable vmspace sharing on SMP. Major changes are, 1999-04-28 01:04:33 +00:00
linux_misc.c Fix up a few easy 'assignment used as truth value' and 'suggest parens 1999-05-06 18:44:42 +00:00
linux_proto.h Commit #2 of 1998-12-30 21:01:34 +00:00
linux_signal.c Fix up a few easy 'assignment used as truth value' and 'suggest parens 1999-05-06 18:44:42 +00:00
linux_socket.c Fix linux sendmsg() emulation 1999-01-11 05:28:44 +00:00
linux_stats.c Divorce "dev_t" from the "major|minor" bitmap, which is now called 1999-05-11 19:55:07 +00:00
linux_syscall.h Commit #2 of 1998-12-30 21:01:34 +00:00
linux_sysent.c Commit #2 of 1998-12-30 21:01:34 +00:00
linux_sysvec.c Enable vmspace sharing on SMP. Major changes are, 1999-04-28 01:04:33 +00:00
linux_util.c Removed unused #includes. 1997-07-20 16:06:08 +00:00
linux_util.h Removed the cast to a pointer in the definition of PS_STRINGS and 1998-12-16 16:28:58 +00:00
linux.h - Handle mixer read ioctls correctly. They have the same group, number and 1999-04-29 04:37:57 +00:00
Makefile Be consistant with the other syscall makefile's handling of the default 1997-03-29 11:17:26 +00:00
syscalls.conf Added a null entry for sysmk that is generated by makesyscalls.sh. 1998-03-13 19:13:54 +00:00
syscalls.master Commit #1 of: 1998-12-30 20:58:28 +00:00