Function report | 
Source Code:kernel\time\hrtimer.c | 
Create Date:2022-07-28 10:40:56 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:__hrtimer_init
Proto:static void __hrtimer_init(struct hrtimer *timer, clockid_t clock_id, enum hrtimer_mode mode)
Type:void
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct hrtimer * | timer | |
| clockid_t | clock_id | |
| enum hrtimer_mode | mode | 
| 1379 | softtimer = Not Not (mode & Timer callback function will be executed in) | 
| 1389 | If IS_ENABLED(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y' or 'm',* 0 otherwise.(CONFIG_PREEMPT_RT) && Not (mode & Timer callback function will be executed in) Then softtimer = true | 
| 1401 | If clock_id == The IDs of the various system clocks (for POSIX.1b interval timers): && mode & Time value is relative to now Then clock_id = CLOCK_MONOTONIC | 
| 1404 | base = If softtimer Then HRTIMER_MAX_CLOCK_BASES / 2 Else 0 | 
| 1405 | base += hrtimer_clockid_to_base(clock_id) | 
| 1408 | base = clock_base[base] | 
| 1409 | timerqueue_init( & node) | 
| Name | Describe | 
|---|---|
| hrtimer_init | hrtimer_init - initialize a timer to the given clock*@timer: the timer to be initialized*@clock_id: the clock to be used*@mode: The modes which are relevant for intitialization:* HRTIMER_MODE_ABS, HRTIMER_MODE_REL, HRTIMER_MODE_ABS_SOFT,* | 
| __hrtimer_init_sleeper | 
| 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  |