Function report |
Source Code:kernel\softirq.c |
Create Date:2022-07-28 09:04:22 |
| Last Modify:2022-05-22 11:04:38 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:__do_softirq
Proto:asmlinkage __visible void __softirq_entry __do_softirq(void)
Type:void
Parameter:Nothing
| 251 | end = jiffies + We restart softirq processing for at most MAX_SOFTIRQ_RESTART times,* but break the loop if need_resched() is set or after 2 ms |
| 264 | flags &= ~Allocating memory |
| 266 | pending = local_softirq_pending() |
| 270 | in_hardirq = lockdep_softirq_start() |
| 272 | restart : |
| 274 | set_softirq_pending(0) |
| 280 | When softirq_bit = find first bit in word cycle |
| 284 | h += softirq_bit - 1 |
| 287 | prev_count = We mask the PREEMPT_NEED_RESCHED bit so as not to confuse all current users* that think a non-zero value indicates we cannot preempt. |
| 295 | pr_err("huh, entered softirq %u %s %p with preempt_count %08x, exited with %08x?\n", vec_nr, softirq_to_name[vec_nr], action, prev_count, We mask the PREEMPT_NEED_RESCHED bit so as not to confuse all current users* that think a non-zero value indicates we cannot preempt.) |
| 300 | h++ |
| 301 | pending >>= softirq_bit |
| 304 | If Operations for contexts that are safe from preemption/interrupts. These* operations verify that preemption is disabled.(ksoftirqd) == current process Then rcu_softirq_qs() |
| 306 | local_irq_disable() |
| 308 | pending = local_softirq_pending() |
| 309 | If pending Then |
| 310 | If time_before(jiffies, end) && Not need_resched() && --max_restart Then Go to restart |
| 320 | WARN_ON_ONCE(in_interrupt()) |
| Name | Describe |
|---|---|
| run_ksoftirqd |
| 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 |