]> git.hungrycats.org Git - linux/commit
[PATCH] simple_read_buffer() helper function
authorAlexander Viro <viro@parcelfarce.linux.theplanet.co.uk>
Thu, 5 Aug 2004 10:39:48 +0000 (03:39 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Thu, 5 Aug 2004 10:39:48 +0000 (03:39 -0700)
commit65d33ad6e2e36e893079523114d1d579ad96ab76
tree5a843656a575d83306b2a21295eadc968d127e2a
parent1cc9f865f84b3beab883ccaeb6a61a65421a97b1
[PATCH] simple_read_buffer() helper function

A number of drivers or special virtual devices really just want their
"read()" function to populate user space from some internal buffer.

This adds such a helper function - "simple_read_from_buffer()" - and
converts several ->read() instances to use it.

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/ia64/kernel/salinfo.c
arch/ppc64/kernel/proc_ppc64.c
drivers/acpi/system.c
drivers/oprofile/oprofilefs.c
drivers/usb/host/uhci-debug.c
fs/libfs.c
include/linux/fs.h