Re: [patch 00/13] Syslets, "Threadlets", generic AIO support, v3
- From: "Chris Friesen" <cfriesen@xxxxxxxxxx>
- Date: Wed, 28 Feb 2007 13:03:51 -0600
Davide Libenzi wrote:
struct async_syscall {
unsigned long nr_sysc;
unsigned long params[8];
long *result;
};
And what would async_wait() return bak? Pointers to "struct async_syscall"
or pointers to "result"?
Either one has downsides. Pointer to struct async_syscall requires that the caller keep the struct around. Pointer to result requires that the caller always reserve a location for the result.
Does the kernel care about the (possibly rare) case of callers that don't want to pay attention to result? If so, what about adding some kind of caller-specified handle to struct async_syscall, and having async_wait() return the handle? In the case where the caller does care about the result, the handle could just be the address of result.
Chris
-
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/
- Follow-Ups:
- Re: [patch 00/13] Syslets, "Threadlets", generic AIO support, v3
- From: Davide Libenzi
- Re: [patch 00/13] Syslets, "Threadlets", generic AIO support, v3
- References:
- [patch 00/13] Syslets, "Threadlets", generic AIO support, v3
- From: Ingo Molnar
- Re: [patch 00/13] Syslets, "Threadlets", generic AIO support, v3
- From: Michael K. Edwards
- Re: [patch 00/13] Syslets, "Threadlets", generic AIO support, v3
- From: Ingo Molnar
- Re: [patch 00/13] Syslets, "Threadlets", generic AIO support, v3
- From: Ulrich Drepper
- Re: [patch 00/13] Syslets, "Threadlets", generic AIO support, v3
- From: Ingo Molnar
- Re: [patch 00/13] Syslets, "Threadlets", generic AIO support, v3
- From: Davide Libenzi
- Re: [patch 00/13] Syslets, "Threadlets", generic AIO support, v3
- From: Ingo Molnar
- Re: [patch 00/13] Syslets, "Threadlets", generic AIO support, v3
- From: Davide Libenzi
- Re: [patch 00/13] Syslets, "Threadlets", generic AIO support, v3
- From: Linus Torvalds
- Re: [patch 00/13] Syslets, "Threadlets", generic AIO support, v3
- From: Davide Libenzi
- Re: [patch 00/13] Syslets, "Threadlets", generic AIO support, v3
- From: Linus Torvalds
- Re: [patch 00/13] Syslets, "Threadlets", generic AIO support, v3
- From: Davide Libenzi
- [patch 00/13] Syslets, "Threadlets", generic AIO support, v3
- Prev by Date: Re: [PATCH 2.6.20] kobject net ifindex + rename
- Next by Date: [PATCH]: __init to __cpuinit in mtrr code
- Previous by thread: Re: [patch 00/13] Syslets, "Threadlets", generic AIO support, v3
- Next by thread: Re: [patch 00/13] Syslets, "Threadlets", generic AIO support, v3
- Index(es):
Relevant Pages
|