函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:hange_clocksource - Swaps clocksources if a new one is available* Accumulates current time interval and initializes new clocksource

函数原型:static int change_clocksource(void *data)

返回类型:int

参数:

类型参数名称
void *data
1362  tk等于timekeeper
1366  new等于data
1368  raw_spin_lock_irqsave( & timekeeper_lock, flags)
1369  write_seqcount_begin( & seq)
1371  mekeeping_forward_now - update clock to the current time* Forward the current clock to update its state since the last call to* update_wall_time(). This is useful before significant clock changes,
1376  如果判断模块是否处于活动状态
1377  如果非enableenable(new)恒等于0则
1378  old等于clock
1380  如果disabledisable(old)
1382  module_put(owner)
1383  否则
1384  module_put(owner)
1387  must hold timekeeper_lock
1389  write_seqcount_end( & seq)
1390  raw_spin_unlock_irqrestore( & timekeeper_lock, flags)
1392  返回:0