函数逻辑报告 |
Source Code:mm\kmemleak.c |
Create Date:2022-07-27 17:57:22 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:File write operation to configure kmemleak at run-time
函数原型:static ssize_t kmemleak_write(struct file *file, const char __user *user_buf, size_t size, loff_t *ppos)
返回类型:ssize_t
参数:
类型 | 参数 | 名称 |
---|---|---|
struct file * | file | |
const char __user * | user_buf | |
size_t | size | |
loff_t * | ppos |
1779 | ret等于mutex_lock_interruptible( & protects the memory scanning, parameters and debug/kmemleak file access ) |
1783 | 如果字符串指定长度比较恒等于0则 |
1786 | 否则__kmemleak_do_cleanup() |
1788 | 转到:out |
1796 | 如果字符串指定长度比较恒等于0则kmemleak_disable() |
1798 | 否则如果字符串指定长度比较恒等于0则ables or disables the task stacks scanning 等于1 |
1800 | 否则如果字符串指定长度比较恒等于0则ables or disables the task stacks scanning 等于0 |
1802 | 否则如果字符串指定长度比较恒等于0则Start the automatic memory scanning thread. This function must be called* with the scan_mutex held. |
1804 | 否则如果字符串指定长度比较恒等于0则Stop the automatic memory scanning thread. |
1806 | 否则如果字符串指定长度比较恒等于0则 |
1813 | 如果secs则 |
1817 | 否则如果字符串指定长度比较恒等于0则Scan data sections and all the referenced memory blocks allocated via the* kernel's standard allocators. This function must be called with the* scan_mutex held. |
1819 | 否则如果字符串指定长度比较恒等于0则ret等于dump_str_object_info(buf + 5) |
1824 | out : |
1831 | 返回:size |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |