IOCTL mapping layer Part I/II
authorJoerg Sonnenberger <joerg@dragonflybsd.org>
Fri, 13 Aug 2004 11:59:00 +0000 (11:59 +0000)
committerJoerg Sonnenberger <joerg@dragonflybsd.org>
Fri, 13 Aug 2004 11:59:00 +0000 (11:59 +0000)
commita0c5fc962e01306b98653ccb409e1e0eac47dcca
treecbcd3a718c840afd0e6626f4fb6e2b262c7b4bab
parente9042c2b009cc0c10c310776923e4bcbc74f371b
IOCTL mapping layer Part I/II

This adds a generic framework for mapping IOCTL requests (cmds) and
attaching special processing functions. Instead of the former adhoc
code using large switch statements e.g. in emulation/linux/linux_ioctl.c,
the emulation layer registers a handler with the mappings for the request
ranges it wants to handle specially. Devices can afterwards add there
own mappings to support e.g. Linux specific IOCTLs.

The first part adds the infrastructure, the second part converts the Linux
emulation, dev/drm and dev/raid/aac.

Submitted-by: Simon 'corecode' Schubert <corecode@fs.ei.tum.de>
Some minor changes by myself.
sys/kern/sys_generic.c
sys/sys/mapped_ioctl.h [new file with mode: 0644]