lkml.org 
[lkml]   [1997]   [May]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Acceptable kernel code?
   From: "James R. Leu" <jleu@chaos.coredcs.com>
Date: Mon, 5 May 1997 13:15:14 -0500 (CDT)

I think I know this answer, but just to verify:

Is it acceptable to use functions like gethostbyname() inside of the
kernel?

Not only is it unacceptable, it simply won't work. :-)

Normally a userland function call should stay in userland, right?
Well what about in a thread like nfsiod? It is kind of in userland
(it's a process) and kind of in kernel land.

You don't have access to libc while you're in kernel land. There is a
subset of libc functions which are implemented for kernel processes, but
it's a very limited subset.

- Ted

\
 
 \ /
  Last update: 2005-03-22 13:39    [W:0.033 / U:0.456 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site