Re: Documentation / code sample wanted.

From: Matt Mackall (
Date: Mon Jun 02 2003 - 23:10:54 EST

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 : : of or relating to the moon
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

This archive was generated by hypermail 2b29 : Sat Jun 07 2003 - 22:00:18 EST