函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\time\posix-cpu-timers.c Create Date:2022-07-27 11:47:34
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Clean up a CPU-clock timer that is about to be destroyed.* This is called from timer deletion with the timer already locked.* If we return TIMER_RETRY, it's necessary to release the timer's lock* and try again

函数原型:static int posix_cpu_timer_del(struct k_itimer *timer)

返回类型:int

参数:

类型参数名称
struct k_itimer *timer
408  ctmr等于cpu
409  p等于task
412  ret等于0
414  如果WARN_ON_ONCE(!p)则返回:负EINVAL
421  sighand等于lock_task_sighand(p, & flags)
422  如果此条件成立可能性小(为编译器优化)(sighand == NULL)则
427  WARN_ON_ONCE(head || timerqueue_node_queued( & node))
428  否则
429  如果firingret等于SPDX-License-Identifier: GPL-2.0
431  否则cpu_timer_dequeue(ctmr)
434  unlock_task_sighand(p, & flags)
437  如果非retput_task_struct(p)
440  返回:ret
调用者
名称描述
do_cpu_nanosleep