Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Validate the clockid_t for a new CPU-clock timer, and initialize the timer.* This is called from sys_timer_create() and do_cpu_nanosleep() with the* new timer already all-zeros initialized.

Proto:static int posix_cpu_timer_create(struct k_itimer *new_timer)

Type:int

Parameter:

TypeParameterName
struct k_itimer *new_timer
389  p = get_task_for_clock(it_clock)
391  If Not p Then Return -EINVAL
394  kclock = clock_posix_cpu
395  timerqueue_init( & node)
396  task = p
397  Return 0
Caller
NameDescribe
do_cpu_nanosleep
process_cpu_timer_create
thread_cpu_timer_create