Re: Why EXPORT_PER_CPU_SYMBOL?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux