Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:alarm_setitimer - set alarm in seconds*@seconds: number of seconds until alarm* 0 disables the alarm* Returns the remaining time in seconds of a pending timer or 0 when* the timer is not active

Proto:static unsigned int alarm_setitimer(unsigned int seconds)

Type:unsigned int

Parameter:

TypeParameterName
unsigned intseconds
286  If seconds > INT_MAX Then seconds = INT_MAX
289  seconds = seconds
290  nanoseconds = 0
291  seconds = nanoseconds = 0
293  do_setitimer(Names of the interval timers, and structure* defining a timer setting:, & it_new, & it_old)
299  If Not seconds && nanoseconds || nanoseconds >= NSEC_PER_SEC / 2 Then seconds ++
303  Return seconds
Caller
NameDescribe
SYSCALL_DEFINE1For backwards compatibility? This can be done in libc so Alpha* and all newer ports shouldn't need it.