函数逻辑报告 |
Source Code:kernel\rcu\rcutorture.c |
Create Date:2022-07-27 11:22:03 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Return a random protection state mask, but with at least one bit set.
函数原型:static int rcutorture_extend_mask(int oldmask, struct torture_random_state *trsp)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
int | oldmask | |
struct torture_random_state * | trsp |
1214 | randmask1等于torture_random(trsp)右移8位 |
1217 | WARN_ON_ONCE(mask >> Put SRCU index in upper bits. ) |
1221 | 否则mask等于mask按位与1左移randmask2取模Number of bits defined above. 位 |
1228 | 返回:如果mask否则... entering another RCU reader. |
名称 | 描述 |
---|---|
rcutorture_loop_extend | Do a randomly selected number of extensions of an existing RCU read-side* critical section. |
rcu_torture_one_read | Do one read-side critical section, returning false if there was* no data to read. Can be invoked both from process context and* from a timer handler. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |