Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:init\main.c Create Date:2022-07-28 13:53:43
Last Modify:2022-05-23 13:07:03 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:do_one_initcall

Proto:int __init_or_module do_one_initcall(initcall_t fn)

Type:int

Parameter:

TypeParameterName
initcall_tfn
931  count = We mask the PREEMPT_NEED_RESCHED bit so as not to confuse all current users* that think a non-zero value indicates we cannot preempt.
935  If initcall_blacklisted(fn) Then Return -EPERM
938  do_trace_initcall_start(fn)
939  ret = fn()
940  do_trace_initcall_finish(fn, ret)
942  msgbuf[0] = 0
944  If We mask the PREEMPT_NEED_RESCHED bit so as not to confuse all current users* that think a non-zero value indicates we cannot preempt. != count Then
945  sprintf - Format a string and place it in a buffer*@buf: The buffer to place the result into*@fmt: The format string to use*@...: Arguments for the format string* The function returns the number of characters written* into @buf
946  preempt_count_set(count)
948  If Some architectures don't define arch_irqs_disabled(), so even if either* definition would be fine we need to use different ones for the time being* to avoid build issues.() Then
949  strlcat - Append a length-limited, C-string to another*@dest: The string to be appended to*@src: The string to append to it*@count: The size of the destination buffer.
950  The local_irq_*() APIs are equal to the raw_local_irq*()* if !TRACE_IRQFLAGS.()
952  WARN(msgbuf[0], "initcall %pS returned with %s\n", fn, msgbuf)
954  add_latent_entropy()
955  Return ret
Caller
NameDescribe
do_initcall_level
do_pre_smp_initcalls