函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Returns true as soon as fn returns true, otherwise false.

函数原型:bool each_symbol_section(bool (*fn)(const struct symsearch *arr, struct module *owner, void *data), void *data)

返回类型:bool

参数:

类型参数名称
bool (*fn
void *data
428  static const struct symsearch arr[] = {{Provided by the linker , __stop___ksymtab, __start___kcrctab, NOT_GPL_ONLY, TSC's on different sockets may be reset asynchronously.* This may cause the TSC ADJUST value on socket 0 to be NOT 0.}, {__start___ksymtab_gpl, __stop___ksymtab_gpl, __start___kcrctab_gpl, GPL_ONLY, TSC's on different sockets may be reset asynchronously.* This may cause the TSC ADJUST value on socket 0 to be NOT 0.}, {__start___ksymtab_gpl_future, __stop___ksymtab_gpl_future, __start___kcrctab_gpl_future, WILL_BE_GPL_ONLY, TSC's on different sockets may be reset asynchronously.* This may cause the TSC ADJUST value on socket 0 to be NOT 0.}, }
447  module_assert_mutex_or_preempt()
449  如果each_symbol_in_section(arr, ARRAY_SIZE - get the number of elements in array @arr*@arr: array to be sized(arr), NULL, fn, data)则返回:true
454  struct symsearch arr[] = {{ Exported symbols , Exported symbols + num_syms, crcs, NOT_GPL_ONLY, TSC's on different sockets may be reset asynchronously.* This may cause the TSC ADJUST value on socket 0 to be NOT 0.}, {gpl_syms, gpl_syms + GPL-only exported symbols. , gpl_crcs, GPL_ONLY, TSC's on different sockets may be reset asynchronously.* This may cause the TSC ADJUST value on socket 0 to be NOT 0.}, { symbols that will be GPL-only in the near future. , symbols that will be GPL-only in the near future. + num_gpl_future_syms, gpl_future_crcs, WILL_BE_GPL_ONLY, TSC's on different sockets may be reset asynchronously.* This may cause the TSC ADJUST value on socket 0 to be NOT 0.}, }
476  如果state恒等于MODULE_STATE_UNFORMED则继续下一循环
479  如果each_symbol_in_section(arr, ARRAY_SIZE - get the number of elements in array @arr*@arr: array to be sized(arr), mod, fn, data)则返回:true
482  返回:false
调用者
名称描述
find_symbolFind an exported symbol and return it, along with, (optional) crc and* (optional) module which owns it. Needs preempt disabled or module_mutex.