函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:posix_timer_add

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

返回类型:int

参数:

类型参数名称
struct k_itimer *timer
140  sig等于signal
141  first_free_id等于posix_timer_id
143  ret等于负ENOENT
145  循环
146  加自旋锁
147  head等于posix_timers_hashtable[hash(sig, posix_timer_id)]
150  ret等于posix_timer_id
152  如果posix_timer_id先自加小于0则posix_timer_id等于0
154  如果posix_timer_id恒等于first_free_idret恒等于负ENOENTret等于负EAGAIN
157  自旋锁解锁
158 ret恒等于负ENOENT循环
159  返回:ret
调用者
名称描述
do_timer_createCreate a POSIX.1b interval timer.