函数逻辑报告 |
Source Code:kernel\sched\core.c |
Create Date:2022-07-27 10:37:11 |
Last Modify:2022-05-22 13:40:38 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Mimics kernel/events/core.c perf_copy_attr().
函数原型:static int sched_copy_attr(struct sched_attr __user *uattr, struct sched_attr *attr)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct sched_attr __user * | uattr | |
struct sched_attr * | attr |
5136 | ret等于Careful: we have to cast the result to the type of the pointer* for sign reasons(size, & size) |
5141 | 如果非size则size等于sizeof first published struct |
5143 | 如果size小于sizeof first published struct 或size大于PAGE_SIZE则转到:err_size |
5146 | ret等于py_struct_from_user: copy a struct from userspace*@dst: Destination address, in kernel space |
5147 | 如果ret则 |
5153 | 如果sched_flags按位与SCHED_FLAG_UTIL_CLAMP且size小于add: util_{min,max} 则返回:负EINVAL |
5163 | 返回:0 |
5165 | err_size : |
5166 | put_user - Write a simple value into user space(attr的长度, & size) |
5167 | 返回:负E2BIG |
名称 | 描述 |
---|---|
SYSCALL_DEFINE3 | sys_sched_setattr - same as above, but with extended sched_attr*@pid: the pid in question.*@uattr: structure containing the extended parameters.*@flags: for future extension. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |