Skip to content

Commit

Permalink
UIO: Add the User IO core code
Browse files Browse the repository at this point in the history
This interface allows the ability to write the majority of a driver in
userspace with only a very small shell of a driver in the kernel itself.
It uses a char device and sysfs to interact with a userspace process to
process interrupts and control memory accesses.

See the docbook documentation for more details on how to use this
interface.

From: Hans J. Koch <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Benedikt Spranger <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
Hans J. Koch authored and gregkh committed Jul 18, 2007
1 parent 5bae7ac commit beafc54
Show file tree
Hide file tree
Showing 6 changed files with 811 additions and 0 deletions.
1 change: 1 addition & 0 deletions drivers/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,5 @@ source "drivers/auxdisplay/Kconfig"

source "drivers/kvm/Kconfig"

source "drivers/uio/Kconfig"
endmenu
1 change: 1 addition & 0 deletions drivers/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ obj-$(CONFIG_ATA) += ata/
obj-$(CONFIG_FUSION) += message/
obj-$(CONFIG_FIREWIRE) += firewire/
obj-$(CONFIG_IEEE1394) += ieee1394/
obj-$(CONFIG_UIO) += uio/
obj-y += cdrom/
obj-y += auxdisplay/
obj-$(CONFIG_MTD) += mtd/
Expand Down
16 changes: 16 additions & 0 deletions drivers/uio/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
menu "Userspace I/O"
depends on !S390

config UIO
tristate "Userspace I/O drivers"
default n
help
Enable this to allow the userspace driver core code to be
built. This code allows userspace programs easy access to
kernel interrupts and memory locations, allowing some drivers
to be written in userspace. Note that a small kernel driver
is also required for interrupt handling to work properly.

If you don't know what to do here, say N.

endmenu
1 change: 1 addition & 0 deletions drivers/uio/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
obj-$(CONFIG_UIO) += uio.o
Loading

0 comments on commit beafc54

Please sign in to comment.