9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Francisco J Ballesteros <nemo@lsub.org>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] stupid kernel question
Date: Fri,  1 Oct 2010 22:25:24 +0200	[thread overview]
Message-ID: <AANLkTinDCwDB2aKPvQGKNnT5fTrawfmWEPsmEHHvEEoq@mail.gmail.com> (raw)
In-Reply-To: <10bf630b13fbac21955790c6827f1ab4@quintile.net>

I'm kind of sleepy. But if I managed to read your mail correctly...

when the kernel wants to do something that can be done with a system
call (mostly read, write, open, ...), it uses the device tab directly, like in

devtab[c->type].write(chan, ....),

using Chan instead of fds in this case.

I mean, I think that almost always you use the internal interface wrapped
by the system call code.

On Fri, Oct 1, 2010 at 9:17 PM, Steve Simon <steve@quintile.net> wrote:
> how does kernel code call plan9 system calls, does it perform a
> trap from kernel back into kernel space and make the request just
> like a user process or is there a more direct, subtle route?
>
> thanks,
>
> -Steve
>
>



  parent reply	other threads:[~2010-10-01 20:25 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-01 19:17 Steve Simon
2010-10-01 20:24 ` erik quanstrom
2010-10-01 20:25 ` Francisco J Ballesteros [this message]
2010-10-01 22:03 ` Steve Simon

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=AANLkTinDCwDB2aKPvQGKNnT5fTrawfmWEPsmEHHvEEoq@mail.gmail.com \
    --to=nemo@lsub.org \
    --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).