函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\rseq.c Create Date:2022-07-27 15:12:42
Last Modify:2022-05-20 08:09:32 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:rseq_need_restart

函数原型:static int rseq_need_restart(struct task_struct *t, u32 cs_flags)

返回类型:int

参数:

类型参数名称
struct task_struct *t
u32cs_flags
167  ret等于Careful: we have to cast the result to the type of the pointer* for sign reasons(flags, & flags)
168  如果ret则返回:ret
172  flags或等于cs_flags
180  如果此条件成立可能性小(为编译器优化)((flags & RSEQ_CS_FLAG_NO_RESTART_ON_SIGNAL) && (flags & RSEQ_CS_PREEMPT_MIGRATE_FLAGS) != RSEQ_CS_PREEMPT_MIGRATE_FLAGS)则返回:负EINVAL
189  禁止抢占()
190  event_mask等于rseq_event_mask
191  rseq_event_mask等于0
192  禁用抢占和中断()
194  返回:非非event_mask按位与flags的反的值
调用者
名称描述
rseq_ip_fixup