From: Greg KH <greg@kroah.com>
To: Jesse Barnes <jbarnes@engr.sgi.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] add mmap support to struct bin_attribute files
Date: Tue, 21 Dec 2004 10:37:10 -0800 [thread overview]
Message-ID: <20041221183710.GA8490@kroah.com> (raw)
In-Reply-To: <200412210932.54961.jbarnes@engr.sgi.com>
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@sgi.com>
Nice, thanks for doing this. I've applied it to my trees.
greg k-h
prev parent reply other threads:[~2004-12-21 18:37 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-12-21 17:32 [PATCH] add mmap support to struct bin_attribute files Jesse Barnes
2004-12-21 17:46 ` Greg KH
2004-12-21 18:37 ` Greg KH [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20041221183710.GA8490@kroah.com \
--to=greg@kroah.com \
--cc=jbarnes@engr.sgi.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox