Re: Suspending and resuming a single task

From: Bernard Blackham
Date: Mon Jun 19 2006 - 00:06:05 EST


On Mon, 2006-06-19 at 03:06 +0200, Wojciech Moczulski wrote:
> Matthew Garrett napisaÅ(a):
> > http://cryopid.berlios.de/ ?
>
> OK, and if I want to parse the path to a file, where process state is saved,
> to the kernel and let the kernel module restart the process? Is it possible to
> do it this way (without building self-executable binary)?

One of the earlier incarnations of CryoPID did more or less this - it
generated an ELF file with segments as laid out in the original image,
so that the kernel ELF loaded did all the dirty work. It still required
an extra portion of code to be injected into the binary in order to
restore registers, file descriptors, etc. I recall the main reason I
switched away from it was to be able to compress the images.

If you're going to be modifying the kernel in order to resume processes,
then implementing it as an binary format handler (fs/binfmt_*) may be
what you're looking for.

Regards,

Bernard.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/