Function report |
Source Code:kernel\time\posix-timers.c |
Create Date:2022-07-28 10:46:45 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:do_timer_settime
Proto:static int do_timer_settime(timer_t timer_id, int tmr_flags, struct itimerspec64 *new_spec64, struct itimerspec64 *old_spec64)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
timer_t | timer_id | |
int | tmr_flags | |
struct itimerspec64 * | new_spec64 | |
struct itimerspec64 * | old_spec64 |
883 | error = 0 |
885 | If Not Returns true if the timespec64 is norm, false if denorm: || Not Returns true if the timespec64 is norm, false if denorm: Then Return -EINVAL |
889 | If old_spec64 Then memset(old_spec64, 0, size of old_spec64 ) |
892 | timr = lock_timer(timer_id, & flags) |
893 | retry : |
898 | If WARN_ON_ONCE(!kc || !timer_set) Then error = -EINVAL |
900 | Else error = timer_set(timr, tmr_flags, new_spec64, old_spec64) |
903 | If error == SPDX-License-Identifier: GPL-2.0 Then |
905 | old_spec64 = NULL |
908 | Go to retry |
910 | unlock_timer(timr, flags) |
912 | Return error |
Name | Describe |
---|---|
SYSCALL_DEFINE4 | Set a POSIX.1b interval timer |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |