Re: [PATCH 5/6] syslets: add generic syslets infrastructure

From: Rusty Russell
Date: Tue Jan 08 2008 - 21:04:35 EST


On Friday 07 December 2007 10:20:18 Zach Brown wrote:
> The indirect syslet arguments specify where to store the completion and
> what function in userspcae to return to once the syslet has been executed.
> The details of how we pass the indirect syslet arguments needs help.

Hi Zach,

Firstly, why not just specify an address for the return value and be done
with it? This infrastructure seems overkill, and you can always extend later
if required.

Secondly, you really should allow integration with an eventfd so you don't
make the posix AIO mistake of providing a poll-incompatible interface.

Finally, and probably most alarmingly, AFAICT randomly changing TID will break
all threaded programs, which means this won't be fitted into existing code
bases, making it YA niche Linux-only API 8(

Cheers,
Rusty.
--
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/