public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Hans Reiser <reiser@namesys.com>
To: Matt Miller <mmiller@hick.org>
Cc: linux-kernel@vger.kernel.org, demidov <demidov@namesys.com>,
	reiserfs-dev@namesys.com, Nikita Danilov <god@namesys.com>
Subject: Re: [PATCH] 2.6: improved fdmap
Date: Mon, 29 Mar 2004 04:45:13 -0800	[thread overview]
Message-ID: <40681A59.2070002@namesys.com> (raw)
In-Reply-To: <Pine.LNX.4.58.0403252228420.20049@jethro.hick.org>

There is some commonality of concepts between this and reiser4 flows.  I 
thought you might find that of interest.

Hans

Matt Miller wrote:

>+/*
>+ * purpose
>+ *
>+ *    Map process memory ranges to virtual file descriptors.  This can be
>+ *    thought of as being the opposite of mmap, simply, instead of mapping
>+ *    a file's contents to a memory range, fdmap maps a memory range to
>+ *    a virtual file.  This allows one to read, write, seek, and even
>+ *    mmap the virtual file's contents as if it were a real file on disk.
>+ *
>+ * interface
>+ *
>+ *    fdmap exposes a new system call identifier.  The system call takes
>+ *    arguments as the following prototype conveys:
>+ *
>+ *       int fdmap(void *addr, size_t len, int flags);
>+ *
>+ *    ``flags'' can be one of O_RDONLY, O_WRONLY, or O_RDWR.
>+ *
>+ *    syscall number
>+ *
>+ *       alpha, arm, ia32, sh: 274
>+ *       sparc, sparc64: 218
>+ *       ia64: 1259
>+ *       m68k: 236
>+ *       mips: 32b=4268 64b=5227 64be32=6231
>+ *       parisc: 229
>+ *       ppc, ppc64: 256
>+ *       s390: 265
>+ *       v850: 203
>+ *
>+ * based on
>+ *
>+ *    The underlying virtual filesystem code was adapted from sockfs.
>+ *
>+ * Matt Miller
>+ * mmiller@hick.org
>+ */
>  
>


-- 
Hans



      parent reply	other threads:[~2004-03-29 14:31 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-26  4:36 [PATCH] 2.6: improved fdmap Matt Miller
2004-03-26 14:24 ` Marc-Christian Petersen
2004-03-26 15:56   ` Matt Miller
2004-03-29 12:45 ` Hans Reiser [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=40681A59.2070002@namesys.com \
    --to=reiser@namesys.com \
    --cc=demidov@namesys.com \
    --cc=god@namesys.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mmiller@hick.org \
    --cc=reiserfs-dev@namesys.com \
    /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