函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__irq_timings_next_event

函数原型:static u64 __irq_timings_next_event(struct irqt_stat *irqs, int irq, u64 now)

返回类型:u64

参数:

类型参数名称
struct irqt_stat *irqs
intirq
u64now
384  min等于INT_MAX
386  如果nowlast_ts大于等于NSEC_PER_SEC
387  count等于last_ts等于0
388  返回:U64_MAX
396  period_max等于如果count大于3乘PREDICTION_PERIOD_MAXPREDICTION_PERIOD_MAX否则count除3
403  如果period_max小于等于PREDICTION_PERIOD_MIN则返回:U64_MAX
409  count等于如果count小于IRQ_TIMINGS_SIZEcount否则IRQ_TIMINGS_SIZE
412  start等于如果count小于IRQ_TIMINGS_SIZE则0否则count按位与IRQ_TIMINGS_MASK
421 i小于count循环
422  index等于starti按位与IRQ_TIMINGS_MASK
424  timings[i]等于circ_timings[index]
425  min等于min_t - return minimum of two values, using the specified type*@type: data type to use*@x: first value*@y: second value(int, timings[i], min)
428  index等于irq_timings_next_event_index(timings, count, period_max)
429  如果index小于0则返回:last_tsema_time[min]
432  返回:last_tsema_time[index]
调用者
名称描述
irq_timings_next_eventq_timings_next_event - Return when the next event is supposed to arrive* During the last busy cycle, the number of interrupts is incremented* and stored in the irq_timings structure