函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\events\core.c Create Date:2022-07-27 14:49:56
Last Modify:2022-05-20 07:50:19 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:ask_function_call - call a function on the cpu on which a task runs*@p: the task to evaluate*@func: the function to be called*@info: the function call argument* Calls the function @func when the task is currently running

函数原型:static int task_function_call(struct task_struct *p, remote_function_f func, void *info)

返回类型:int

参数:

类型参数名称
struct task_struct *p
remote_function_ffunc
void *info
105  struct remote_function_call data = {p = p, func = func, info = info, ret = - EAGAIN, }
113  循环
114  ret等于smp_call_function_single(task_cpu(p), remote_function, & data, 1)
115  如果非retret等于ret
117 ret恒等于负EAGAIN循环
119  返回:ret
调用者
名称描述
event_function_call
perf_install_in_contextAttach a performance event to a context.* Very similar to event_function_call, see comment there.