Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:get_clock_desc

Proto:static int get_clock_desc(const clockid_t id, struct posix_clock_desc *cd)

Type:int

Parameter:

TypeParameterName
const clockid_tid
struct posix_clock_desc *cd
201  fp = fget(clockid_to_fd(id))
202  err = -EINVAL
204  If Not fp Then Return err
207  If open != posix_clock_open || Not needed for tty driver, and maybe others Then Go to out
210  fp = fp
211  clk = Returns NULL if the posix_clock instance attached to 'fp' is old and stale.
213  err = If clk Then 0 Else -ENODEV
214  out :
215  If err Then fput(fp)
217  Return err
Caller
NameDescribe
pc_clock_adjtime
pc_clock_gettime
pc_clock_getres
pc_clock_settime