> 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/