Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\module.c Create Date:2022-07-28 10:57:48
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Returns true as soon as fn returns true, otherwise false.

Proto:bool each_symbol_section(bool (*fn)(const struct symsearch *arr, struct module *owner, void *data), void *data)

Type:bool

Parameter:

TypeParameterName
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  If each_symbol_in_section(arr, ARRAY_SIZE - get the number of elements in array @arr*@arr: array to be sized(arr), NULL, fn, data) Then Return 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  If state == MODULE_STATE_UNFORMED Then Continue
479  If each_symbol_in_section(arr, ARRAY_SIZE - get the number of elements in array @arr*@arr: array to be sized(arr), mod, fn, data) Then Return true
482  Return false
Caller
NameDescribe
find_symbolFind an exported symbol and return it, along with, (optional) crc and* (optional) module which owns it. Needs preempt disabled or module_mutex.