lkml.org 
[lkml]   [2003]   [Jun]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Documentation / code sample wanted.
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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:35    [from the cache]
©2003-2011 Jasper Spaans. Advertise on this site