Function report |
Source Code:kernel\sched\psi.c |
Create Date:2022-07-28 09:46:56 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:psi_trigger_destroy
Proto:static void psi_trigger_destroy(struct kref *ref)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct kref * | ref |
| 1086 | struct kthread_worker * kworker_to_destroy = NULL |
| 1088 | If static_branch_likely( & psi_disabled) Then Return |
| 1095 | wake_up_interruptible( & event_wait) |
| 1097 | mutex_lock( & trigger_lock) |
| 1099 | If Not list_empty - tests whether a list is empty*@head: the list to test. Then |
| 1101 | period = ULLONG_MAX |
| 1104 | nr_triggers[state]-- |
| 1105 | If Not nr_triggers[state] Then poll_states &= ~(1 << state) |
| 1111 | poll_min_period = period |
| 1113 | If poll_states == 0 Then |
| 1114 | polling_until = 0 |
| 1122 | mutex_unlock( & trigger_lock) |
| 1129 | synchronize_rcu() |
| 1134 | If kworker_to_destroy Then |
| 1142 | atomic_set( & poll_scheduled, 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 |