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_release

Proto:static int timerfd_release(struct inode *inode, struct file *file)

Type:int

Parameter:

TypeParameterName
struct inode *inode
struct file *file
218  ctx = needed for tty driver, and maybe others
220  timerfd_remove_cancel(ctx)
222  If isalarm(ctx) Then alarm_cancel - Spins trying to cancel an alarm timer until it is done*@alarm: ptr to alarm to be canceled* Returns 1 if the timer was canceled, 0 if it was not active.
224  Else hrtimer_cancel - cancel a timer and wait for the handler to finish.*@timer: the timer to be cancelled* Returns:* 0 when the timer was not active* 1 when the timer was active
226  kfree_rcu() - kfree an object after a grace period(ctx, rcu)
227  Return 0