Le Thu, 11 Sep 2008 14:18:34 +0800, "Peter Teoh" <htmldeveloper@xxxxxxxxx> a écrit : > In arch/x86/kernel/process_32.c: > > EXPORT_PER_CPU_SYMBOL(current_task); > EXPORT_PER_CPU_SYMBOL(cpu_number); > EXPORT_SYMBOL(kernel_thread); > EXPORT_SYMBOL_GPL(start_thread); > > What is the rational behind exporting per CPU symbol? Export per-cpu variables <http://lwn.net/Articles/22911/> to modules ? current_task is a per-cpu variable: DEFINE_PER_CPU(struct task_struct *, current_task) = &init_task; Thomas -- Thomas Petazzoni, Free Electrons Kernel, drivers and embedded Linux development, consulting, training and support. http://free-electrons.com -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ