函数逻辑报告 |
Source Code:mm\memcontrol.c |
Create Date:2022-07-27 17:46:56 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:DO NOT USE IN NEW FILES.* Parse input and register new cgroup event handler.* Input must be in format '<event_fd> <control_fd> <args>'.* Interpretation of args is defined by control file implementation.
函数原型:static ssize_t memcg_write_event_control(struct kernfs_open_file *of, char *buf, size_t nbytes, loff_t off)
返回类型:ssize_t
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct kernfs_open_file * | of | |
| char * | buf | |
| size_t | nbytes | |
| loff_t | off |
| 4505 | memcg等于mem_cgroup_from_css(css) |
| 4517 | efd等于转换字符串为无符号整形 |
| 4522 | cfd等于转换字符串为无符号整形 |
| 4532 | 初始化链表头 |
| 4533 | init_poll_funcptr( & All fields below needed to unregister event when* userspace closes eventfd., memcg_event_ptable_queue_proc) |
| 4534 | init_waitqueue_func_entry( & wait, Gets called on EPOLLHUP on eventfd when user closes it.* Called with wqh->lock held and interrupts disabled.) |
| 4538 | 如果非file则 |
| 4544 | 如果是错误则 |
| 4546 | 转到:out_put_efile |
| 4550 | 如果非file则 |
| 4552 | 转到:out_put_eventfd |
| 4557 | ret等于inode_permission(file_inode(file), MAY_READ) |
| 4558 | 如果ret小于0则转到:out_put_cfile |
| 4571 | 如果非字符串比较则 |
| 4574 | 否则如果非字符串比较则 |
| 4577 | 否则如果非字符串比较则 |
| 4580 | 否则如果非字符串比较则 |
| 4583 | 否则 |
| 4585 | 转到:out_put_cfile |
| 4596 | 如果是错误则转到:out_put_cfile |
| 4599 | 设置一个css引用 |
| 4600 | 转到:out_put_cfile |
| 4604 | 如果ret则转到:out_put_css |
| 4609 | 加自旋锁 |
| 4610 | 添加链表项 |
| 4611 | 自旋锁解锁 |
| 4616 | 返回:nbytes |
| 4618 | out_put_css : |
| 4619 | 设置一个css引用 |
| 4620 | out_put_cfile : |
| 4622 | out_put_eventfd : |
| 4624 | out_put_efile : |
| 4626 | out_kfree : |
| 4627 | 释放内存 |
| 4629 | 返回:ret |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |