函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\timerfd.c Create Date:2022-07-29 10:51:48
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:timerfd_setup

函数原型:static int timerfd_setup(struct timerfd_ctx *ctx, int flags, const struct itimerspec64 *ktmr)

返回类型:int

参数:

类型参数名称
struct timerfd_ctx *ctx
intflags
const struct itimerspec64 *ktmr
177  clockid等于clockid
179  htmode等于如果flags按位与CAREFUL: Check include/asm-generic/fcntl.h when defining* new flags, since they might collide with O_* ones. We want* to re-use O_* flags that couldn't possibly have a meaning* from eventfd, in order to leave a free define-space for* shared O_* flags. Time value is absolute否则 Time value is relative to now
182  texp等于vert a timespec64 to ktime_t format:
183  expired等于0
184  ticks等于0
185  tintv等于vert a timespec64 to ktime_t format:
187  如果isalarm(ctx)则
188  alarm_init - Initialize an alarm structure*@alarm: ptr to alarm to be initialized*@type: the type of the alarm*@function: callback that is run when the alarm fires
192  否则
193  hrtimer_init - initialize a timer to the given clock*@timer: the timer to be initialized*@clock_id: the clock to be used*@mode: The modes which are relevant for intitialization:* HRTIMER_MODE_ABS, HRTIMER_MODE_REL, HRTIMER_MODE_ABS_SOFT,*
194  hrtimer_set_expires( & tmr, texp)
195  function等于timerfd_tmrproc
198  如果texp不等于0则
199  如果isalarm(ctx)则
204  否则
208  如果timerfd_canceled(ctx)则返回:负ECANCELED
212  to show in fdinfo 等于flags按位与Flags for timerfd_settime.
213  返回:0
调用者
名称描述
do_timerfd_settime