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:35
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Get the time remaining on a POSIX.1b interval timer. This function* is ALWAYS called with spin_lock_irq on the timer, thus it must not* mess with irq.* We have a couple of messes to clean up here. First there is the case

Proto:void common_timer_get(struct k_itimer *timr, struct itimerspec64 *cur_setting)

Type:void

Parameter:

TypeParameterName
struct k_itimer *timr
struct itimerspec64 *cur_setting
646  kc = kclock
651  sig_none = it_sigev_notify == her notification: meaningless
652  iv = it_interval
655  If iv Then
656  it_interval = Map the ktime_t to timespec conversion to ns_to_timespec function (iv)
657  Else if Not it_active Then
662  If Not sig_none Then Return
670  clock_get(it_clock, & ts64)
671  now = vert a timespec64 to ktime_t format:
677  If iv && ( it_requeue_pending & REQUEUE_PENDING || sig_none) Then it_overrun += timer_forward(timr, now)
680  remaining = timer_remaining(timr, now)
682  If remaining <= 0 Then
687  If Not sig_none Then nanoseconds = 1
689  Else
690  it_value = Map the ktime_t to timespec conversion to ns_to_timespec function (remaining)
Caller
NameDescribe
common_timer_setSet a POSIX.1b interval timer.