<HTML>
<HEAD>
   <TITLE>Linux Threads Home Page: Is there a system call I can use to access kernel threads?</TITLE>
</HEAD>
<BODY BACKGROUND="GraySea.gif">

<P><FONT SIZE=+3>Is there a system call I can use to access kernel threads?</FONT></P>

<UL>
<P>Recent versions of glibc has clone() defined thus:</P>
</UL>

<UL>
<P><TT>int clone(int (*fn)(), void **stack, int flags, int argc,... /*
args */); </TT></P>

<UL>
<UL>
<TABLE BORDER=1 CELLSPACING=0 CELLPADDING=2 >
<TR>
<TD><TT>fn</TT></TD>

<TD><TT>The thread routine</TT></TD>
</TR>

<TR>
<TD><TT>stack </TT></TD>

<TD><TT>The thread's stack</TT></TD>
</TR>

<TR>
<TD><TT>flags </TT></TD>

<TD><TT>Flags as defined above</TT></TD>
</TR>

<TR>
<TD><TT>argc </TT></TD>

<TD><TT>number of remaining parameters</TT></TD>
</TR>

<TR>
<TD><TT>/* args */</TT></TD>

<TD><TT>the parameters expected by the thread.</TT></TD>
</TR>
</TABLE>
</UL>
</UL>
</UL>


<P><HR SIZE=4 WIDTH="100%"></P>
<CENTER><TABLE CELLSPACING=0 CELLPADDING=0 >
<TR>
<TD><A HREF="StdLibs.html"><CENTER><IMG SRC="ArrowLeft.gif" ALT="[Left Arrow]" BORDER=0 HEIGHT=40 WIDTH=40></CENTER></A></TD>
<TD><A HREF="index.html"><CENTER><IMG SRC="House.gif" ALT="[Home]" BORDER=0 HEIGHT=40 WIDTH=40></CENTER></A></TD>
<TD><A HREF="Dictionary.html"><CENTER><IMG SRC="BookSearch.gif" ALT="[Book Search]" BORDER=0 HEIGHT=40 WIDTH=40></CENTER></A></TD>
<TD><A HREF="mailto:walton@oclc.org"><CENTER><IMG SRC="MailBox.gif" ALT="[Mailbox]" BORDER=0 HEIGHT=40 WIDTH=40></CENTER></A></TD>
<TD><A HREF="CloneFlags.html"><CENTER><IMG SRC="ArrowRight.gif" ALT="[Right Arrow]" BORDER=0 HEIGHT=40 WIDTH=40></CENTER></A></TD>
</TR>
<TR>
<TD><A HREF="StdLibs.html">[Previous Page]</A></TD>
<TD><A HREF="index.html">[First Page]</A></TD>
<TD><A HREF="Dictionary.html">[Dictionary]</A></TD>
<TD><A HREF="mailto:walton@oclc.org">[Email Author]</A></TD>
<TD><A HREF="CloneFlags.html">[Next Page]</A></TD>
</TR>
</TABLE></CENTER>

</BODY></HTML>
