Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\time\timekeeping.c Create Date:2022-07-28 10:41:54
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:pvclock_gtod_register_notifier - register a pvclock timedata update listener

Proto:int pvclock_gtod_register_notifier(struct notifier_block *nb)

Type:int

Parameter:

TypeParameterName
struct notifier_block *nb
586  tk = timekeeper
590  raw_spin_lock_irqsave( & timekeeper_lock, flags)
591  ret = aw_notifier_chain_register - Add notifier to a raw notifier chain*@nh: Pointer to head of the raw notifier chain*@n: New entry in notifier chain* Adds a notifier to a raw notifier chain.* All locking must be provided by the caller.
592  update_pvclock_gtod(tk, true)
593  raw_spin_unlock_irqrestore( & timekeeper_lock, flags)
595  Return ret