Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:set_cpu_itimer

Proto:static void set_cpu_itimer(struct task_struct *tsk, unsigned int clock_id, const struct itimerspec64 *const value, struct itimerspec64 *const ovalue)

Type:void

Parameter:

TypeParameterName
struct task_struct *tsk
unsigned intclock_id
const struct itimerspec64 *constvalue
struct itimerspec64 *constovalue
173  it = it[clock_id]
179  nval = mespec64_to_ns - Convert timespec64 to nanoseconds*@ts: pointer to the timespec64 variable to be converted* Returns the scalar nanosecond representation of the timespec64* parameter.
180  ninterval = mespec64_to_ns - Convert timespec64 to nanoseconds*@ts: pointer to the timespec64 variable to be converted* Returns the scalar nanosecond representation of the timespec64* parameter.
182  spin_lock_irq( & siglock)
184  oval = expires
185  ointerval = incr
186  If oval || nval Then
187  If nval > 0 Then nval += TICK_NSEC is the time between ticks in nsec assuming SHIFTED_HZ
189  Set one of the process-wide special case CPU timers or RLIMIT_CPU.* The tsk->sighand->siglock must be held by the caller.
191  expires = nval
192  incr = ninterval
193  mer_state - called when itimer is started or canceled*@which: name of the interval timer*@value: the itimers value, itimer is canceled if value->it_value is* zero, otherwise it is started*@expires: the itimers expiry time
196  spin_unlock_irq( & siglock)
198  If ovalue Then
199  it_value = s_to_timespec64 - Convert nanoseconds to timespec64*@nsec: the nanoseconds value to be converted* Returns the timespec64 representation of the nsec parameter.
200  it_interval = s_to_timespec64 - Convert nanoseconds to timespec64*@nsec: the nanoseconds value to be converted* Returns the timespec64 representation of the nsec parameter.
Caller
NameDescribe
do_setitimer