函数逻辑报告 |
Source Code:mm\backing-dev.c |
Create Date:2022-07-27 15:48:26 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:wb_init
函数原型:static int wb_init(struct bdi_writeback *wb, struct backing_dev_info *bdi, int blkcg_id, gfp_t gfp)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct bdi_writeback * | wb | |
| struct backing_dev_info * | bdi | |
| int | blkcg_id | |
| gfp_t | gfp |
| 291 | 如果wb不等于 the root writeback info for this bdi 则bdi_get(bdi) |
| 293 | ur parent bdi 等于bdi |
| 294 | last old data flush 等于jiffies |
| 295 | 初始化链表头 |
| 296 | 初始化链表头 |
| 297 | 初始化链表头 |
| 298 | 初始化链表头 |
| 299 | spin_lock_init( & protects the b_* lists ) |
| 308 | 初始化链表头 |
| 309 | INIT_DELAYED_WORK( & work item used for writeback , Handle writeback of dirty data for the device backed by this bdi. Also* reschedules periodically and does kupdated style flushing.) |
| 312 | congested等于wb_congested_get_create(bdi, blkcg_id, gfp) |
| 313 | 如果非congested则 |
| 315 | 转到:out_put_bdi |
| 318 | err等于fprop_local_init_percpu( & completions, gfp) |
| 319 | 如果err则转到:out_put_cong |
| 322 | 以i小于NR_WB_STAT_ITEMS循环 |
| 323 | err等于percpu_counter_init( & stat[i], 0, gfp) |
| 324 | 如果err则转到:out_destroy_stat |
| 328 | 返回:0 |
| 330 | out_destroy_stat : |
| 332 | percpu_counter_destroy( & stat[i]) |
| 334 | out_put_cong : |
| 336 | out_put_bdi : |
| 337 | 如果wb不等于 the root writeback info for this bdi 则bdi_put(bdi) |
| 339 | 返回:err |
| 名称 | 描述 |
|---|---|
| cgwb_bdi_init |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |