函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:posix_cpu_clock_get

函数原型:static int posix_cpu_clock_get(const clockid_t clock, struct timespec64 *tp)

返回类型:int

参数:

类型参数名称
const clockid_tclock
struct timespec64 *tp
364  clkid等于CPUCLOCK_WHICH(clock)
368  tsk等于get_task_for_clock_get(clock)
369  如果非tsk则返回:负EINVAL
372  如果CPUCLOCK_PERTHREAD(clock)则t等于Sample a per-thread clock for the given task. clkid is validated.
374  否则t等于Sample a process (thread group) clock for the given task clkid. If the* group's cputime accounting is already enabled, read the atomic* store. Otherwise a full update is required. Task's sighand lock must be
376  put_task_struct(tsk)
378  tp等于纳秒转换到64位timespec时间
379  返回:0
调用者
名称描述
process_cpu_clock_get
thread_cpu_clock_get