函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:div64_u64 - unsigned 64bit divide with 64bit divisor*@dividend: 64bit dividend*@divisor: 64bit divisor* This implementation is a modified version of the algorithm proposed* by the book 'Hacker's Delight'. The original source and full proof

函数原型:u64 div64_u64(u64 dividend, u64 divisor)

返回类型:u64

参数:

类型参数名称
u64dividend
u64divisor
144  high等于divisor右移32位
147  如果high恒等于0则
148  quot等于div_u64 - unsigned 64bit divide with 32bit divisor*@dividend: unsigned 64bit dividend*@divisor: unsigned 32bit divisor* This is the most common 64bit divide and should be used if possible,* as many 32bit archs can optimize this variant better than a full
149  否则
150  n等于ls - find last set bit in word*@x: the word to search* This is defined in a similar way as the libc and compiler builtin* ffs, but returns the position of the most significant set bit.* fls(value) returns 0 if value is 0 or the position of the last
151  quot等于div_u64 - unsigned 64bit divide with 32bit divisor*@dividend: unsigned 64bit dividend*@divisor: unsigned 32bit divisor* This is the most common 64bit divide and should be used if possible,* as many 32bit archs can optimize this variant better than a full
153  如果quot不等于0则quot自减
155  如果dividendquotdivisor大于等于divisorquot自加
159  返回:quot
调用者
名称描述
div64_s64div64_s64 - signed 64bit divide with 64bit divisor*@dividend: 64bit dividend*@divisor: 64bit divisor
aperfmperf_snapshot_khzaperfmperf_snapshot_khz()* On the current CPU, snapshot APERF, MPERF, and jiffies* unless we already did it within 10ms* calculate kHz, save snapshot
to_ratio
proc_sched_show_task
window_updatePSI growth tracking window update and growth calculation routine.* This approximates a sliding tracking window by interpolating* partially elapsed windows using historical growth data from the* previous intervals
em_create_pd
timekeeping_adjustAdjust the timekeeper's multiplier to the correct frequency* and also to reduce the accumulated error value.
___bpf_prog_run__bpf_prog_run - run eBPF program on a given context*@regs: is the array of MAX_BPF_EXT_REG eBPF pseudo-registers*@insn: is the array of eBPF instructions*@stack: is the eBPF storage stack* Decode and execute eBPF instructions.
perf_calculate_period
perf_swevent_set_periodWe directly increment event->count and keep a second value in* is kept in the range [-sample_period, 0] so that we can use the* sign as trigger.
get_scan_countDetermine how aggressively the anon and file LRU lists should be* scanned
latency_sum_ok
iolat_update_total_lat_avg
check_scale_changeCheck our parent and see if the scale cookie has changed.
iolatency_pd_stat
ioc_autop_idx
ioc_refresh_params
ioc_lat_stat
ioc_timer_fn
add_latency_sample
calc_hpet_refCalculate the TSC frequency from HPET reference
set_max_threadsset_max_threads
wb_position_ratioDirty position control
tg_with_in_bps_limit