Mailing List Archive

[q] how to make sure a process is not on CPU?
Hello,

I'm trying to manipulate a process, I must make sure not only the
process won't go away under me, also it is not on CPU, and it'll
return from schedule() at lease once.

Any thoughts?
--
Coywolf Qi Hunt
http://sosdg.org/~coywolf/
-
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/
Re: [q] how to make sure a process is not on CPU? [ In reply to ]
Hi!

> I'm trying to manipulate a process, I must make sure not only the
> process won't go away under me, also it is not on CPU, and it'll
> return from schedule() at lease once.
>
> Any thoughts?

See kernel/power/process.c
--
64 bytes from 195.113.31.123: icmp_seq=28 ttl=51 time=448769.1 ms

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