函数逻辑报告 |
Source Code:lib\percpu_counter.c |
Create Date:2022-07-27 08:09:00 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:This function is both preempt and irq safe. The former is due to explicit* preemption disable. The latter is guaranteed by the fact that the slow path* is explicitly protected by an irq-safe spinlock whereas the fast patch uses
函数原型:void percpu_counter_add_batch(struct percpu_counter *fbc, s64 amount, s32 batch)
返回类型:void
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct percpu_counter * | fbc | |
| s64 | amount | |
| s32 | batch |
| 86 | 禁止抢占() |
| 87 | count等于Operations for contexts that are safe from preemption/interrupts. These* operations verify that preemption is disabled.( * counters)加amount |
| 90 | raw_spin_lock_irqsave( & lock, flags) |
| 92 | __this_cpu_sub( * counters, count - amount) |
| 93 | raw_spin_unlock_irqrestore( & lock, flags) |
| 94 | 否则 |
| 95 | this_cpu_add( * counters, amount) |
| 97 | 禁用抢占和中断() |
| 名称 | 描述 |
|---|---|
| __fprop_inc_percpu | Event of type pl happened |
| __fprop_inc_percpu_max | Like __fprop_inc_percpu() except that event is counted only if the given* type has fraction smaller than @max_frac/FPROP_FRAC_BASE |
| blkg_rwstat_add | lkg_rwstat_add - add a value to a blkg_rwstat*@rwstat: target blkg_rwstat*@op: REQ_OP and flags*@val: value to add* Add @val to @rwstat. The counters are chosen according to @rw. The* caller is responsible for synchronizing calls to this function. |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |