Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\time\posix-cpu-timers.c Create Date:2022-07-28 10:47:38
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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

Proto:static int posix_cpu_timer_del(struct k_itimer *timer)

Type:int

Parameter:

TypeParameterName
struct k_itimer *timer
408  ctmr = cpu
409  p = task
412  ret = 0
414  If WARN_ON_ONCE(!p) Then Return -EINVAL
421  sighand = lock_task_sighand(p, & flags)
422  If Value for the false possibility is greater at compile time(sighand == NULL) Then
427  WARN_ON_ONCE(head || timerqueue_node_queued( & node))
428  Else
429  If firing Then ret = SPDX-License-Identifier: GPL-2.0
431  Else cpu_timer_dequeue(ctmr)
434  unlock_task_sighand(p, & flags)
437  If Not ret Then put_task_struct(p)
440  Return ret
Caller
NameDescribe
do_cpu_nanosleep