android_kernel_xiaomi_sm8350/Documentation/DocBook
Hans J. Koch 8205779114 UIO: Add name attributes for mappings and port regions
If a UIO device has several memory mappings, it can be difficult for userspace
to find the right one. The situation becomes even worse if the UIO driver can
handle different versions of a card that have different numbers of mappings.
Benedikt Spranger has such cards and pointed this out to me. Thanks, Bene!

To address this problem, this patch adds "name" sysfs attributes for each
mapping. Userspace can use these to clearly identify each mapping. The name
string is optional. If a driver doesn't set it, an empty string will be
returned, so this patch won't break existing drivers.

The same problem exists for port region information, so a "name" attribute is
added there, too.

Signed-off-by: Hans J. Koch <hjk@linutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-03-24 16:38:24 -07:00
..
.gitignore
debugobjects.tmpl
device-drivers.tmpl docbook: split kernel-api for device-drivers 2009-02-22 12:21:46 -08:00
deviceiobook.tmpl Rationalise Randy's address a bit 2008-10-30 11:38:47 -07:00
filesystems.tmpl
gadget.tmpl usb gadget: cdc obex glue 2008-10-17 14:40:53 -07:00
genericirq.tmpl
kernel-api.tmpl docbook: split kernel-api for device-drivers 2009-02-22 12:21:46 -08:00
kernel-hacking.tmpl docbooks: fix fatal filename errors 2008-10-26 16:32:10 -07:00
kernel-locking.tmpl Remove mention of semaphores from kernel-locking 2008-07-24 08:29:40 -04:00
kgdb.tmpl kgdb: fix kgdb_validate_break_address to perform a mem write 2008-08-01 08:39:34 -05:00
libata.tmpl
librs.tmpl
lsm.tmpl
mac80211.tmpl mac80211: clean up kdoc 2008-09-15 16:48:26 -04:00
Makefile docbook: split kernel-api for device-drivers 2009-02-22 12:21:46 -08:00
mcabook.tmpl Rationalise Randy's address a bit 2008-10-30 11:38:47 -07:00
mtdnand.tmpl
networking.tmpl wimax: Makefile, Kconfig and docbook linkage for the stack 2009-01-07 10:00:17 -08:00
procfs_example.c docbook: update procfs credits 2008-10-16 11:21:46 -07:00
procfs-guide.tmpl docbook: update procfs credits 2008-10-16 11:21:46 -07:00
rapidio.tmpl
regulator.tmpl regulator: Add basic DocBook manual 2009-01-08 20:10:34 +00:00
s390-drivers.tmpl docbook: fix s390 fatal error after header files moved 2008-08-05 16:56:29 -07:00
scsi.tmpl
sh.tmpl sh: Add documentation and integrate into docbook build. 2008-08-04 12:53:55 +09:00
stylesheet.xsl
uio-howto.tmpl UIO: Add name attributes for mappings and port regions 2009-03-24 16:38:24 -07:00
usb.tmpl
writing_usb_driver.tmpl
z8530book.tmpl Rationalise Randy's address a bit 2008-10-30 11:38:47 -07:00