Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:clockid_to_kclock

Proto:static const struct k_clock *clockid_to_kclock(const clockid_t id)

Type:struct k_clock

Parameter:

TypeParameterName
const clockid_tid
1359  idx = id
1361  If id < 0 Then
1362  Return If (id & CLOCKFD_MASK) == CLOCKFD Then clock_posix_dynamic Else clock_posix_cpu
1366  If id >= ARRAY_SIZE - get the number of elements in array @arr*@arr: array to be sized(posix_clocks) Then Return NULL
1369  Return posix_clocks[array_index_nospec - sanitize an array index after a bounds check* For a code sequence like:* if (index < size) {* index = array_index_nospec(index, size);* val = array[index];* }* (idx, ARRAY_SIZE - get the number of elements in array @arr*@arr: array to be sized(posix_clocks))]
Caller
NameDescribe
do_timer_createCreate a POSIX.1b interval timer.
SYSCALL_DEFINE2
SYSCALL_DEFINE2
do_clock_adjtime
SYSCALL_DEFINE2
SYSCALL_DEFINE4