Skip to content

Commit beafc54

Browse files
Hans J. Kochgregkh
authored andcommitted
UIO: Add the User IO core code
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]>
1 parent 5bae7ac commit beafc54

File tree

6 files changed

+811
-0
lines changed

6 files changed

+811
-0
lines changed

drivers/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,4 +84,5 @@ source "drivers/auxdisplay/Kconfig"
8484

8585
source "drivers/kvm/Kconfig"
8686

87+
source "drivers/uio/Kconfig"
8788
endmenu

drivers/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ obj-$(CONFIG_ATA) += ata/
4040
obj-$(CONFIG_FUSION) += message/
4141
obj-$(CONFIG_FIREWIRE) += firewire/
4242
obj-$(CONFIG_IEEE1394) += ieee1394/
43+
obj-$(CONFIG_UIO) += uio/
4344
obj-y += cdrom/
4445
obj-y += auxdisplay/
4546
obj-$(CONFIG_MTD) += mtd/

drivers/uio/Kconfig

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
menu "Userspace I/O"
2+
depends on !S390
3+
4+
config UIO
5+
tristate "Userspace I/O drivers"
6+
default n
7+
help
8+
Enable this to allow the userspace driver core code to be
9+
built. This code allows userspace programs easy access to
10+
kernel interrupts and memory locations, allowing some drivers
11+
to be written in userspace. Note that a small kernel driver
12+
is also required for interrupt handling to work properly.
13+
14+
If you don't know what to do here, say N.
15+
16+
endmenu

drivers/uio/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
obj-$(CONFIG_UIO) += uio.o

0 commit comments

Comments
 (0)