Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Lookup and populate the error_injection_list.* For safety reasons we only allow certain functions to be overridden with* bpf_error_injection, so we need to populate the list of the symbols that have* been marked as safe for overriding.

Proto:static void populate_error_injection_list(struct error_injection_entry *start, struct error_injection_entry *end, void *priv)

Type:void

Parameter:

TypeParameterName
struct error_injection_entry *start
struct error_injection_entry *end
void *priv
63  offset = 0 , size = 0
65  mutex_lock( & ei_mutex)
66  When iter < end cycle
67  entry = arch_deref_entry_point((void * )addr)
71  pr_err("Failed to find error inject entry at %p\n", (void * )entry)
73  Continue
76  ent = kmalloc( size of ent , GFP_KERNEL)
77  If Not ent Then Break
79  start_addr = entry
80  end_addr = entry + size
81  etype = etype
82  priv = priv
83  Initialization list head
84  list_add_tail - add a new entry*@new: new entry to be added*@head: list head to add it before* Insert a new entry before the specified head.* This is useful for implementing queues.
86  mutex_unlock( & ei_mutex)
Caller
NameDescribe
populate_kernel_ei_list
module_load_ei_list