Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\timerfd.c Create Date:2022-07-28 20:19:55
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:timerfd_setup

Proto:static int timerfd_setup(struct timerfd_ctx *ctx, int flags, const struct itimerspec64 *ktmr)

Type:int

Parameter:

TypeParameterName
struct timerfd_ctx *ctx
intflags
const struct itimerspec64 *ktmr
177  clockid = clockid
179  htmode = If 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. Then Time value is absolute Else 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  If isalarm(ctx) Then
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  Else
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  If texp != 0 Then
199  If isalarm(ctx) Then
204  Else
208  If timerfd_canceled(ctx) Then Return -ECANCELED
212  to show in fdinfo = flags & Flags for timerfd_settime.
213  Return 0
Caller
NameDescribe
do_timerfd_settime