Re: [PATCH] [2/2] posix message queues

From: Ulrich Drepper
Date: Sat Oct 04 2003 - 01:40:54 EST


Peter WÃchtler wrote:

> + if (q->notify.sigev_notify == SIGEV_THREAD) {
> +
> + err = -ENOSYS;
> + pr_info("mq_*send: SIGEV_THREAD not supported\n");
> + }

In all the SIGEV_THREAD cases I suggest that you expect to be passed a
futex address. Upon completion you increment the value and call
sys_futex with FUTEX_WAKE.

This gives plenty of freedom at userlevel to implement the actual work.

--
--------------. ,-. 444 Castro Street
Ulrich Drepper \ ,-----------------' \ Mountain View, CA 94041 USA
Red Hat `--' drepper at redhat.com `---------------------------

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