Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\time\posix-timers.c Create Date:2022-07-28 10:46:19
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:This function gets called when a POSIX.1b interval timer expires. It* is used as a callback from the kernel internal timer. The* run_timer_list code ALWAYS calls with interrupts on.* This code is for CLOCK_REALTIME* and CLOCK_MONOTONIC* timers.

Proto:static enum hrtimer_restart posix_timer_fn(struct hrtimer *timer)

Type:enum hrtimer_restart

Parameter:

TypeParameterName
struct hrtimer *timer
344  si_private = 0
345  ret = Timer is not restarted
347  timr = container_of - cast a member of a structure out to the containing structure*@ptr: the pointer to the member.*@type: the type of the container struct this is embedded in.*@member: the name of the member within the struct.(timer, structk_itimer, timer)
348  spin_lock_irqsave( & it_lock, flags)
350  it_active = 0
351  If it_interval != 0 Then si_private = ++it_requeue_pending
354  If posix_timer_event(timr, si_private) Then
360  If it_interval != 0 Then
397  it_active = 1
401  unlock_timer(timr, flags)
402  Return ret