函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:clockid_to_kclock

函数原型:static const struct k_clock *clockid_to_kclock(const clockid_t id)

返回类型:struct k_clock

参数:

类型参数名称
const clockid_tid
1359  idx等于id
1361  如果id小于0则
1362  返回:如果id按位与CLOCKFD_MASK的值恒等于CLOCKFDclock_posix_dynamic否则clock_posix_cpu
1366  如果id大于等于ARRAY_SIZE - get the number of elements in array @arr*@arr: array to be sized(posix_clocks)则返回:NULL
1369  返回: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))]
调用者
名称描述
do_timer_createCreate a POSIX.1b interval timer.
SYSCALL_DEFINE2
SYSCALL_DEFINE2
do_clock_adjtime
SYSCALL_DEFINE2
SYSCALL_DEFINE4