Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:klp_unpatch_func

Proto:static void klp_unpatch_func(struct klp_func *func)

Type:void

Parameter:

TypeParameterName
struct klp_func *func
139  If WARN_ON(!patched) Then Return
141  If WARN_ON(!rnal ) Then Return
144  ops = klp_find_ops(rnal )
145  If WARN_ON(!ops) Then Return
148  If list_is_singular - tests whether a list has just one entry.*@head: the list to test. Then
151  ftrace_loc = Convert a function address into the appropriate ftrace location.* Usually this is just the address of the function, but on some architectures* it's more complicated so allow them to provide a custom behaviour.
153  If WARN_ON(!ftrace_loc) Then Return
156  WARN_ON(register_ftrace_function - unregister a function for profiling.*@ops - ops structure that holds the function to unregister* Unregister a function that was added to be called by ftrace profiling.)
157  WARN_ON(ftrace_set_filter_ip( & fops, ftrace_loc, 1, 0))
159  list_del_rcu - deletes entry from list without re-initialization*@entry: the element to delete from the list
160  deletes entry from list
161  kfree(ops)
162  Else
163  list_del_rcu - deletes entry from list without re-initialization*@entry: the element to delete from the list
166  patched = false
Caller
NameDescribe
__klp_unpatch_object