函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\trace\trace_printk.c Create Date:2022-07-27 13:13:15
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:hold_module_trace_bprintk_format

函数原型:static void hold_module_trace_bprintk_format(const char **start, const char **end)

返回类型:void

参数:

类型参数名称
const char **start
const char **end
59  如果start不等于endtrace_printk_init_buffers()
62  mutex_lock( & serialize accesses to trace_bprintk_fmt_list )
63 iter小于end循环
64  tb_fmt等于lookup_format( * iter)
65  如果tb_fmt
66  如果非是错误iter等于fmt
68  继续下一循环
71  fmt = NULL
72  tb_fmt等于开辟内存
73  如果tb_fmt
74  fmt等于开辟内存
75  如果fmt
77  strcpy(fmt, * iter)
78  fmt等于fmt
79  否则kfree(tb_fmt)
82  iter等于fmt
85  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
调用者
名称描述
module_trace_bprintk_format_notify