函数逻辑报告

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_cancel

函数原型:static void timerfd_setup_cancel(struct timerfd_ctx *ctx, int flags)

返回类型:void

参数:

类型参数名称
struct timerfd_ctx *ctx
intflags
144  加自旋锁
145  如果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
148  如果非might_cancel
149  might_cancel = true
150  加自旋锁
154  否则
155  __timerfd_remove_cancel(ctx)
157  自旋锁解锁
调用者
名称描述
do_timerfd_settime