linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] uio: open(), mmap(), close()
@ 2012-12-11 23:12 Benedikt Spranger
  2012-12-11 23:12 ` [PATCH 1/2] uio: add warning to documentation Benedikt Spranger
  2012-12-11 23:12 ` [PATCH 2/2] uio: do not expose inode to uio open/release hooks Benedikt Spranger
  0 siblings, 2 replies; 16+ messages in thread
From: Benedikt Spranger @ 2012-12-11 23:12 UTC (permalink / raw)
  To: linux-kernel; +Cc: hjk, gregkh, Alexander.Frank, Benedikt Spranger

After open(), mmap(), close() POSIX 1003.1 mmap() declares the mmaped pointer
valid. Add a warning to the documentation to inform UIO users keep this
behaviour into account.
While the inode parameter of in tree UIO kernel drivers is unused by
open/release hooks, remove teh inode parateter. This would help to process
the release hook in an unmap context.

Benedikt Spranger (2):
  uio: add warning to documentation
  uio: do not expose inode to uio open/release hooks

 Documentation/DocBook/uio-howto.tmpl |   11 ++++++++---
 drivers/uio/uio.c                    |    4 ++--
 include/linux/uio_driver.h           |    4 ++--
 3 files changed, 12 insertions(+), 7 deletions(-)

-- 
1.7.10.4


^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2012-12-13  0:15 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-11 23:12 [PATCH 0/2] uio: open(), mmap(), close() Benedikt Spranger
2012-12-11 23:12 ` [PATCH 1/2] uio: add warning to documentation Benedikt Spranger
2012-12-11 23:18   ` Greg KH
2012-12-12  0:45     ` Benedikt Spranger
2012-12-12  4:49       ` Greg KH
2012-12-12  1:56     ` Hans J. Koch
2012-12-12  4:47       ` Greg KH
2012-12-11 23:12 ` [PATCH 2/2] uio: do not expose inode to uio open/release hooks Benedikt Spranger
2012-12-11 23:20   ` Greg KH
2012-12-12  1:42     ` Hans J. Koch
2012-12-12  4:46       ` Greg KH
2012-12-12  8:50         ` Hans J. Koch
2012-12-12  8:56           ` Benedikt Spranger
2012-12-12 15:08             ` Greg KH
2012-12-13  0:08               ` Hans J. Koch
2012-12-13  0:15                 ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).