| Date | Tue, 13 Feb 2007 15:20:19 +0100 | From | Ingo Molnar <> | Subject | [patch 01/11] syslets: add async.h include file, kernel-side API definitions |
| |
From: Ingo Molnar <mingo@elte.hu>
add include/linux/async.h which contains the kernel-side API declarations.
it also provides NOP stubs for the !CONFIG_ASYNC_SUPPORT case.
Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Arjan van de Ven <arjan@linux.intel.com> --- include/linux/async.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+)
Index: linux/include/linux/async.h =================================================================== --- /dev/null +++ linux/include/linux/async.h @@ -0,0 +1,25 @@ +#ifndef _LINUX_ASYNC_H +#define _LINUX_ASYNC_H +/* + * The syslet subsystem - asynchronous syscall execution support. + * + * Generic kernel API definitions: + */ + +#ifdef CONFIG_ASYNC_SUPPORT +extern void async_init(struct task_struct *t); +extern void async_exit(struct task_struct *t); +extern void __async_schedule(struct task_struct *t); +#else /* !CONFIG_ASYNC_SUPPORT */ +static inline void async_init(struct task_struct *t) +{ +} +static inline void async_exit(struct task_struct *t) +{ +} +static inline void __async_schedule(struct task_struct *t) +{ +} +#endif /* !CONFIG_ASYNC_SUPPORT */ + +#endif - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
|