9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: "Fernan Bolando" <fernanbolando@mailc.net>
To: "Fans of the OS Plan 9 from Bell Labs" <9fans@9fans.net>
Subject: [9fans] mounting plumber from p9p to 9vx
Date: Mon, 24 Nov 2008 13:42:49 +0800	[thread overview]
Message-ID: <1d5d51400811232142i335bff42vcf3ac153347800bb@mail.gmail.com> (raw)

Hi all

How do I mount my p9p plumber on to my 9vx session?

The background. I am using plumber as a simple dynamic loading
mechanism to extend my haskell interpreter. I wrote a few simple C
programs that read from one of plumber ports.

This is how it works
1. Haskell sends a request to calculate a very complex math via file
IO to /mnt/plumb/send
2. plumber reads the message and launches a C-code handler to the
specific problem.
3. handler will send an ACK to plumber and then proceeds to do the calculation.
4. Haskell waits on the /mnt/plumb/retval untill it gets a message.

The retval can be the result of a calculation or an error code. I want
to try moving the handler on to p9p and see if it works that way too.

fernan

--
http://www.fernski.com



             reply	other threads:[~2008-11-24  5:42 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-24  5:42 Fernan Bolando [this message]
2008-11-24 18:10 ` Russ Cox
2009-03-05  5:47   ` Tom Lieber
2009-03-05 16:30     ` Russ Cox
2009-03-05 17:19       ` Tom Lieber

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=1d5d51400811232142i335bff42vcf3ac153347800bb@mail.gmail.com \
    --to=fernanbolando@mailc.net \
    --cc=9fans@9fans.net \
    /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;
as well as URLs for NNTP newsgroup(s).