Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:timerfd_setup_cancel

Proto:static void timerfd_setup_cancel(struct timerfd_ctx *ctx, int flags)

Type:void

Parameter:

TypeParameterName
struct timerfd_ctx *ctx
intflags
144  spin_lock( & cancel_lock)
145  If ( clockid == The IDs of the various system clocks (for POSIX.1b interval timers): || clockid == CLOCK_REALTIME_ALARM ) && 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. && flags & TFD_TIMER_CANCEL_ON_SET Then
148  If Not might_cancel Then
149  might_cancel = true
154  Else
155  __timerfd_remove_cancel(ctx)
157  spin_unlock( & cancel_lock)
Caller
NameDescribe
do_timerfd_settime