Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\smp.c Create Date:2022-07-28 10:55:48
Last Modify:2020-03-17 15:12:54 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:flush_smp_call_function_queue

Proto:static void flush_smp_call_function_queue(bool warn_cpu_offline)

Type:void

Parameter:

TypeParameterName
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_reverse_order - reverse order of a llist chain*@head: first item of the list to be reversed* Reverse the order of a chain of llist entries and return the* new first entry.
224  If Value for the false possibility is greater at compile time(warn_cpu_offline && !cpu_online(smp_processor_id()) && !warned && !llist_empty - tests whether a lock-less list is empty*@head: the list to test* Not guaranteed to be accurate or up to date. Just a quick way to* test whether the list is empty without deleting something from the* list.) Then
226  warned = true
227  WARN(1, "IPI on offline CPU %d\n", smp_processor_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  pr_warn("IPI callback %pS sent to offline CPU\n", func)
239  func = func
240  info = info
243  If flags & CSD_FLAG_SYNCHRONOUS Then
244  func(info)
245  csd_unlock(csd)
246  Else
247  csd_unlock(csd)
248  func(info)
258  irq_work_run()
Caller
NameDescribe
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.