Function report |
Source Code:kernel\time\tick-oneshot.c |
Create Date:2022-07-28 10:51:40 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:k_switch_to_oneshot - switch to oneshot mode
Proto:int tick_switch_to_oneshot(void (*handler)(struct clock_event_device *))
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
void (* | handler |
75 | td = this_cpu_ptr( & Tick devices) |
78 | If Not dev || Not (features & CLOCK_EVT_FEAT_ONESHOT) || Not tick_device_is_functional(dev) Then |
81 | pr_info("Clockevents: could not switch to one-shot mode:") |
82 | If Not dev Then |
84 | Else |
85 | If Not tick_device_is_functional(dev) Then Like KERN_CONT, pr_cont() should only be used when continuing* a line with no newline ('\n') enclosed. Otherwise it defaults* back to KERN_DEFAULT.(" %s is not functional.\n", name) |
87 | Else Like KERN_CONT, pr_cont() should only be used when continuing* a line with no newline ('\n') enclosed. Otherwise it defaults* back to KERN_DEFAULT.(" %s does not support one-shot mode.\n", name) |
91 | Return -EINVAL |
94 | mode = TICKDEV_MODE_ONESHOT |
95 | event_handler = handler |
98 | Return 0 |
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 |