Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:posix_timer_add

Proto:static int posix_timer_add(struct k_itimer *timer)

Type:int

Parameter:

TypeParameterName
struct k_itimer *timer
140  sig = signal
141  first_free_id = posix_timer_id
143  ret = -ENOENT
145  Do
146  spin_lock( & hash_lock)
147  head = posix_timers_hashtable[hash(sig, posix_timer_id)]
152  If ++posix_timer_id < 0 Then posix_timer_id = 0
154  If posix_timer_id == first_free_id && ret == -ENOENT Then ret = -EAGAIN
157  spin_unlock( & hash_lock)
158  When ret == -ENOENT cycle
159  Return ret
Caller
NameDescribe
do_timer_createCreate a POSIX.1b interval timer.