public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Matt Mackall <mpm@selenic.com>
To: Jody Pearson <J.Pearson@cern.ch>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Documentation / code sample wanted.
Date: Mon, 2 Jun 2003 23:10:54 -0500	[thread overview]
Message-ID: <20030603041054.GM23715@waste.org> (raw)
In-Reply-To: <Pine.LNX.4.44.0306021939490.31408-100000@lxplus077.cern.ch>

On Mon, Jun 02, 2003 at 07:40:52PM +0200, Jody Pearson wrote:

> I am looking for some source code or a document which outlines how to open 
> a TCP connection within kernel space.

Take a look at nbd or Cisco's iSCSI driver.
 
> For more information, I basically want to emulate a userland 
> gethostbyname() in kernel space.

That gets ugly quickly. There are a lot of options and complexity
needed to handle even the simplest name resolution robustly. It almost
certainly makes more sense to do this in userspace and pass the result
down to the kernel.

-- 
Matt Mackall : http://www.selenic.com : of or relating to the moon

      parent reply	other threads:[~2003-06-03  3:57 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-06-02 17:40 Documentation / code sample wanted Jody Pearson
2003-06-02 18:18 ` Richard B. Johnson
2003-06-03 10:38   ` Jody Pearson
2003-06-02 19:40 ` Alan Cox
2003-06-03  4:10 ` Matt Mackall [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=20030603041054.GM23715@waste.org \
    --to=mpm@selenic.com \
    --cc=J.Pearson@cern.ch \
    --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