public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
* [Linux-ia64] _clone system call
@ 2002-05-28 22:33 Wedum, Patricia
  2002-05-28 22:52 ` Boehm, Hans
  0 siblings, 1 reply; 2+ messages in thread
From: Wedum, Patricia @ 2002-05-28 22:33 UTC (permalink / raw)
  To: linux-ia64


I have been unable to find an implementation for the _clone function call
(calls clone2 system call).

Does anyone know if it exists for ia64, I found an i386 implementation in
the latest glibc? I see the
pthread library making a call to clone2 but it is not using the _clone
interface.

Thank You
Patricia


^ permalink raw reply	[flat|nested] 2+ messages in thread

* RE: [Linux-ia64] _clone system call
  2002-05-28 22:33 [Linux-ia64] _clone system call Wedum, Patricia
@ 2002-05-28 22:52 ` Boehm, Hans
  0 siblings, 0 replies; 2+ messages in thread
From: Boehm, Hans @ 2002-05-28 22:52 UTC (permalink / raw)
  To: linux-ia64

The _clone function can't be usefully implemented on Itanium, since it doesn't provide for a place to put the register stack.  If you really have to, use __clone2 instead.  Its interface is identical to __clone except that an additional argument is added after the stack base; it's the stack size.

Under most circumstances, pthread_create is greatly preferred to either __clone or __clone2.  The problem with calling __clone or __clone2 directly is that things are unlikely to work correctly if another library routine also want to create a thread or needs to provide for mutual exclusion.

Hans

> -----Original Message-----
> From: Wedum, Patricia [mailto:patricia.wedum@intel.com]
> Sent: Tuesday, May 28, 2002 3:34 PM
> To: 'linux-ia64@linuxia64.org'
> Subject: [Linux-ia64] _clone system call
> 
> 
> 
> 
> I have been unable to find an implementation for the _clone 
> function call
> (calls clone2 system call).
> 
> Does anyone know if it exists for ia64, I found an i386 
> implementation in
> the latest glibc? I see the
> pthread library making a call to clone2 but it is not using the _clone
> interface.
> 
> Thank You
> Patricia
> 
> _______________________________________________
> Linux-IA64 mailing list
> Linux-IA64@linuxia64.org
> http://lists.linuxia64.org/lists/listinfo/linux-ia64
> 


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-05-28 22:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-05-28 22:33 [Linux-ia64] _clone system call Wedum, Patricia
2002-05-28 22:52 ` Boehm, Hans

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox