* problem about CLONE_PARENT_SETTID | CLONE_CHILD_CLEARTID ?
@ 2002-12-10 18:49 Hu, Boris
2002-12-10 19:01 ` Ulrich Drepper
0 siblings, 1 reply; 3+ messages in thread
From: Hu, Boris @ 2002-12-10 18:49 UTC (permalink / raw)
To: Linux Kernel ML (E-mail), NPTL list (E-mail)
When I read create_thread() in NPTL source code, it passes
CLONE_PARENT_SETTID
| CLONE_CHILD_CLEARTID to sys_clone(). However, in arch/arm/kernel/sys_arm.c
(sys_clone) [kernel 2.5.49]
256 if (clone_flags & (CLONE_PARENT_SETTID | CLONE_CHILD_CLEARTID))
257 return -EINVAL;
I have searched CLONE_PARENT_SETTID in kernel, it seems only to appear in
some non-architecture files, such as /include/linux/sched.h and several arch
files,
but they do little about wrapping. Why ARM can't support
(CLONE_PARENT_SETTID | CLONE_CHILD_CLEARTID)?
any comments? thanks a lot.
Boris
=========================
To know what I don't know
To learn what I don't know
To contribute what I know
=========================
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: problem about CLONE_PARENT_SETTID | CLONE_CHILD_CLEARTID ?
2002-12-10 18:49 problem about CLONE_PARENT_SETTID | CLONE_CHILD_CLEARTID ? Hu, Boris
@ 2002-12-10 19:01 ` Ulrich Drepper
2002-12-11 16:22 ` Roger Gammans
0 siblings, 1 reply; 3+ messages in thread
From: Ulrich Drepper @ 2002-12-10 19:01 UTC (permalink / raw)
To: Hu, Boris; +Cc: Linux Kernel ML (E-mail), NPTL list (E-mail)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hu, Boris wrote:
> I have searched CLONE_PARENT_SETTID in kernel, it seems only to appear in
> some non-architecture files, such as /include/linux/sched.h and several arch
> files,
> but they do little about wrapping. Why ARM can't support
> (CLONE_PARENT_SETTID | CLONE_CHILD_CLEARTID)?
>
> any comments? thanks a lot.
Follow the kernel mailing lists. It's not adequate to ask these
questions here. If you would have read the kernel mailing list posts it
would have been obvious that every single architecture needs changes to
the kernel. Nobody cared for Arm so far so there obviously is no kernel
support.
- --
- --------------. ,-. 444 Castro Street
Ulrich Drepper \ ,-----------------' \ Mountain View, CA 94041 USA
Red Hat `--' drepper at redhat.com `---------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQE99joM2ijCOnn/RHQRAsyaAJ4khzPYopcMqxUSxOsnXf+r5qPD+ACfST14
51FpBVTFUFO6A9WwAOgX5EU=
=2xM9
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: problem about CLONE_PARENT_SETTID | CLONE_CHILD_CLEARTID ?
2002-12-10 19:01 ` Ulrich Drepper
@ 2002-12-11 16:22 ` Roger Gammans
0 siblings, 0 replies; 3+ messages in thread
From: Roger Gammans @ 2002-12-11 16:22 UTC (permalink / raw)
To: Ulrich Drepper; +Cc: Hu, Boris, Linux Kernel ML (E-mail), NPTL list (E-mail)
[-- Attachment #1: Type: text/plain, Size: 819 bytes --]
On Tue, Dec 10, 2002 at 11:01:32AM -0800, Ulrich Drepper wrote:
> Hu, Boris wrote:
>
> > I have searched CLONE_PARENT_SETTID in kernel, it seems only to appear in
> > some non-architecture files, such as /include/linux/sched.h and several arch
> [snip]
> the kernel. Nobody cared for Arm so far so there obviously is no kernel
> support.
Unless Russell has changed his mind recently,[1] use of SWP in userspace code
isn't supported.
I suppose this is less of a concern if futex's work on ARM though.
But you'll need some userspace synchronisation primitive to do useful work
with threads.
TTFN
[1] And I haven't been following linux-arm recently.
--
Roger.
Master of Peng Shui. (Ancient oriental art of Penguin Arranging)
GPG Key FPR: CFF1 F383 F854 4E6A 918D 5CFF A90D E73B 88DE 0B3E
[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-12-11 16:15 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-10 18:49 problem about CLONE_PARENT_SETTID | CLONE_CHILD_CLEARTID ? Hu, Boris
2002-12-10 19:01 ` Ulrich Drepper
2002-12-11 16:22 ` Roger Gammans
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).