On Sat, Feb 03, 2007 at 09:23:08AM +0100, Ingo Molnar wrote: > The normal and most optimal workflow should be a user-space ring-buffer > of these constant-size struct async_syscall entries: > > struct async_syscall ringbuffer[1024]; > > LIST_HEAD(submitted); > LIST_HEAD(pending); > LIST_HEAD(completed); It's wrong to call this a ring buffer as things won't be completed in any particular order. So you'll need a fourth list head for which buffer elements are free. At which point, you might as well leave it entirely up to the application to manage the allocation of async_syscall structs. It may know it only needs two, or ten thousand, or five per client... -- Mathematics is the supreme nostalgia of our time. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] 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 2 of 4] Introduce i386 fibril scheduling
- From: Ingo Molnar <[email protected]>
- Re: [PATCH 2 of 4] Introduce i386 fibril scheduling
- References:
- [PATCH 2 of 4] Introduce i386 fibril scheduling
- From: Zach Brown <[email protected]>
- Re: [PATCH 2 of 4] Introduce i386 fibril scheduling
- From: Ingo Molnar <[email protected]>
- Re: [PATCH 2 of 4] Introduce i386 fibril scheduling
- From: Linus Torvalds <[email protected]>
- Re: [PATCH 2 of 4] Introduce i386 fibril scheduling
- From: Ingo Molnar <[email protected]>
- Re: [PATCH 2 of 4] Introduce i386 fibril scheduling
- From: Linus Torvalds <[email protected]>
- Re: [PATCH 2 of 4] Introduce i386 fibril scheduling
- From: Ingo Molnar <[email protected]>
- Re: [PATCH 2 of 4] Introduce i386 fibril scheduling
- From: Linus Torvalds <[email protected]>
- Re: [PATCH 2 of 4] Introduce i386 fibril scheduling
- From: Ingo Molnar <[email protected]>
- Re: [PATCH 2 of 4] Introduce i386 fibril scheduling
- From: Linus Torvalds <[email protected]>
- Re: [PATCH 2 of 4] Introduce i386 fibril scheduling
- From: Ingo Molnar <[email protected]>
- [PATCH 2 of 4] Introduce i386 fibril scheduling
- Prev by Date: Re: 2.6.20-rc7: known regressions
- Next by Date: Re: 2.6.20-rc7: known regressions
- Previous by thread: Re: [PATCH 2 of 4] Introduce i386 fibril scheduling
- Next by thread: Re: [PATCH 2 of 4] Introduce i386 fibril scheduling
- Index(es):