示例6: kmem_cache_alloc_node ▲点赞 1▼ struct thread_info *alloc_thread_info_node(struct task_struct *tsk,intnode){structthread_info*ti;#ifdefCONFIG_DEBUG_STACK_USAGEgfp_tmask = GFP_KERNEL | __GFP_ZERO;#elsegfp_tmask = GFP_KERNEL;#endifti =kmem_cache_alloc_node(thread_info_cache,...
在create_task_io_context函数内部,kmem_cache_alloc_node函数耗时0.485 us,而_raw_spin_lock函数...