Re: [PATCH] add mmap support to struct bin_attribute files

From: Greg KH
Date: Tue Dec 21 2004 - 13:39:06 EST


On Tue, Dec 21, 2004 at 09:32:54AM -0800, Jesse Barnes wrote:
> This patch adds an mmap method and some more error checking to struct
> bin_attribute--good for things like exporting PCI resources directly. I
> wasn't sure about the return values for the case where an attribute is
> missing a given method, and it looks like mm.h can't be included in sysfs.h,
> so I had to forward declare struct vm_area_struct. Other than that, it works
> fine for my test cases.
>
> fs/sysfs/bin.c | 27 +++++++++++++++++++++++++--
> include/linux/sysfs.h | 6 ++++++
> 2 files changed, 31 insertions(+), 2 deletions(-)
>
> Signed-off-by: Jesse Barnes <jbarnes@xxxxxxx>

Nice, thanks for doing this. I've applied it to my trees.

greg k-h
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/