Re: [RFC][PATCH] Kernel thread signal handling.

From: David Woodhouse
Date: Mon Oct 13 2003 - 06:29:56 EST


On Mon, 2003-10-13 at 12:08 +0100, Russell King wrote:
> jffs2 is using signal handlers as a method of communicating from user
> space to kernel space. Maybe it should create some sysfs files.
> However, since there aren't any existing sysfs entities for jffs2 to
> attach these files to, this wouldn't seem to be reasonable.

To clarify -- the JFFS2 garbage collect thread is using SIGSTOP, SIGCONT
and SIGKILL from userspace to mean exactly what SIGSTOP, SIGCONT and
SIGKILL always mean in userspace.

Since it already has signal handling code, we also use SIGHUP for
wakeup, and userspace can send that too to trigger a single GC pass.

--
dwmw2

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