函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\time\posix-timers.c Create Date:2022-07-27 11:46:14
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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.

函数原型:static enum hrtimer_restart posix_timer_fn(struct hrtimer *timer)

返回类型:enum hrtimer_restart

参数:

类型参数名称
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  如果it_interval不等于0则si_private等于it_requeue_pending先自加
354  如果posix_timer_event(timr, si_private)则
360  如果it_interval不等于0则
396  it_requeue_pending先自加
397  it_active等于1
401  unlock_timer(timr, flags)
402  返回:ret