函数逻辑报告 | 
Source Code:kernel\rcu\rcu_segcblist.c | 
Create Date:2022-07-27 11:29:23 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| 首页 | 函数Tree | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称:Entrain the specified callback onto the specified rcu_segcblist at* the end of the last non-empty segment. If the entire rcu_segcblist* is empty, make no change, but return false.* This is intended for use by rcu_barrier()-like primitives, -not-
函数原型:bool rcu_segcblist_entrain(struct rcu_segcblist *rsclp, struct callback_head *rhp, bool lazy)
返回类型:bool
参数:
| 类型 | 参数 | 名称 | 
|---|---|---|
| struct rcu_segcblist * | rsclp | |
| struct callback_head * | rhp | |
| bool | lazy | 
| 282 | 如果Return number of callbacks in segmented callback list. 恒等于0则返回:false | 
| 287 | smp_mb() | 
| 288 | next = NULL | 
| 291 | 退出 | 
| 292 | WRITE_ONCE( * tails[i], rhp) | 
| 293 | 以i小于等于RCU_NEXT_TAIL循环WRITE_ONCE(tails[i], & next) | 
| 295 | 返回:true | 
| 名称 | 描述 | 
|---|---|
| rcu_barrier_func | Called with preemption disabled, and from cross-cpu IRQ context. | 
| srcu_barrier | srcu_barrier - Wait until all in-flight call_srcu() callbacks complete.*@ssp: srcu_struct on which to wait for in-flight callbacks. | 
| 源代码转换工具 开放的插件接口  | X | 
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码  |