Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Try to install a replacement clock event device

Proto:static int clockevents_replace(struct clock_event_device *ced)

Type:int

Parameter:

TypeParameterName
struct clock_event_device *ced
361  struct clock_event_device * dev, * newdev = NULL
364  If dev == ced || Not clockevent_state_detached(dev) Then Continue
367  If Not Check whether the new device is a better fit than curdev. curdev* can be NULL ! Then Continue
370  If Not try_module_get(owner) Then Continue
373  If newdev Then module_put(owner)
375  newdev = dev
377  If newdev Then
378  tick_install_replacement(newdev)
379  list_del_init - deletes entry from list and reinitialize it.*@entry: the element to delete from the list.
381  Return If newdev Then 0 Else -EBUSY
Caller
NameDescribe
__clockevents_unbindSMP function call to unbind a device