函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\smp.c Create Date:2022-07-27 11:56:05
Last Modify:2020-03-17 15:12:54 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:flush_smp_call_function_queue

函数原型:static void flush_smp_call_function_queue(bool warn_cpu_offline)

返回类型:void

参数:

类型参数名称
boolwarn_cpu_offline
217  lockdep_assert_irqs_disabled()
219  head等于this_cpu_ptr( & call_single_queue)
220  entry等于llist_del_all - delete all entries from lock-less list*@head: the head of lock-less list to delete all entries* If list is empty, return NULL, otherwise, delete all entries and* return the pointer to the first entry. The order of entries
221  entry等于 反转llist链顺序
224  如果此条件成立可能性小(为编译器优化)(warn_cpu_offline && !cpu_online(当前cpu ID()) && !warned && !锁列表为空)则
226  warned = true
227  WARN(1, "IPI on offline CPU %d\n", 当前cpu ID())
233  llist_for_each_entry - iterate over some deleted entries of lock-less list of given type*@pos: the type * to use as a loop cursor(csd, entry, llist)
234  打印警告信息("IPI callback %pS sent to offline CPU\n", func)
239  func等于func
240  info等于info
243  如果flags按位与CSD_FLAG_SYNCHRONOUS
244  func(info)
245  csd_unlock(csd)
246  否则
247  csd_unlock(csd)
248  func(info)
258  irq_work_run()
调用者
名称描述
smpcfd_dying_cpu
generic_smp_call_function_single_interruptgeneric_smp_call_function_single_interrupt - Execute SMP IPI callbacks* Invoked by arch to handle an IPI for call function single.* Must be called with interrupts disabled.