get_cpu() 和 put_cpu() 的定义如下: #define get_cpu() ({ preempt_disable(); smp_processor_id(); }) #define put_cpu() preempt_enable() 所以,在需要禁止任务抢占的区域,要得到cpu id 的话,可以使用 get_cpu()/put_cpu() 函数对, 否则直接使用 smp_processor_id() 即可。 #define get_cpu() ({ preempt_disable(); smp_processor_id(); }) #define put_cpu() preempt_enable() 本文来自...
Why not to get nawk for linux.i think nawk is new version awk,but i can't find it from google and baidu. it is very strange.anyone can help me? thanks