| 函数逻辑报告 | 
| Source Code: kernel\sys.c | Create Date:2022-07-27 10:21:33 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| 首页 | 函数Tree | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称:SYSCALL_DEFINE5
函数原型:SYSCALL_DEFINE5(prctl, int, option, unsigned long, arg2, unsigned long, arg3, unsigned long, arg4, unsigned long, arg5)
返回类型:
参数:无
| 2275 | error等于0 | 
| 2277 | 当:option恒等于Second arg is a signal | 
| 2282 | 父进程终止时发出的信号等于arg2 | 
| 2283 | 退出 | 
| 2285 | error等于put_user - Write a simple value into user space(父进程终止时发出的信号, (int__user * )arg2) | 
| 2286 | 退出 | 
| 2287 | 当:option恒等于Get/set current->mm->dumpable | 
| 2288 | error等于get_dumpable(内存信息) | 
| 2289 | 退出 | 
| 2290 | 当:option恒等于PR_SET_DUMPABLE | 
| 2291 | 如果arg2不等于No setuid dumping 且arg2不等于Dump as user of process 则 | 
| 2295 | set_dumpable(内存信息, arg2) | 
| 2296 | 退出 | 
| 2298 | 当:option恒等于PR_SET_UNALIGN | 
| 2299 | error等于SET_UNALIGN_CTL(me, arg2) | 
| 2300 | 退出 | 
| 2302 | error等于GET_UNALIGN_CTL(me, arg2) | 
| 2303 | 退出 | 
| 2304 | 当:option恒等于PR_SET_FPEMU | 
| 2305 | error等于SET_FPEMU_CTL(me, arg2) | 
| 2306 | 退出 | 
| 2308 | error等于GET_FPEMU_CTL(me, arg2) | 
| 2309 | 退出 | 
| 2310 | 当:option恒等于PR_SET_FPEXC | 
| 2311 | error等于SET_FPEXC_CTL(me, arg2) | 
| 2312 | 退出 | 
| 2314 | error等于GET_FPEXC_CTL(me, arg2) | 
| 2315 | 退出 | 
| 2319 | 当:option恒等于PR_SET_TIMING | 
| 2322 | 退出 | 
| 2323 | 当:option恒等于Set process name | 
| 2331 | 当:option恒等于Get process name | 
| 2332 | get_task_comm(comm, me) | 
| 2335 | 退出 | 
| 2336 | 当:option恒等于Get/set process endian | 
| 2337 | error等于GET_ENDIAN(me, arg2) | 
| 2338 | 退出 | 
| 2339 | 当:option恒等于PR_SET_ENDIAN | 
| 2340 | error等于SET_ENDIAN(me, arg2) | 
| 2341 | 退出 | 
| 2342 | 当:option恒等于Get/set process seccomp mode | 
| 2343 | error等于prctl_get_seccomp() | 
| 2344 | 退出 | 
| 2345 | 当:option恒等于PR_SET_SECCOMP | 
| 2351 | 当:option恒等于PR_SET_TSC | 
| 2352 | error等于SET_TSC_CTL(arg2) | 
| 2353 | 退出 | 
| 2354 | 当:option恒等于PR_TASK_PERF_EVENTS_DISABLE | 
| 2355 | error等于perf_event_task_disable() | 
| 2356 | 退出 | 
| 2357 | 当:option恒等于PR_TASK_PERF_EVENTS_ENABLE | 
| 2358 | error等于perf_event_task_enable() | 
| 2359 | 退出 | 
| 2360 | 当:option恒等于PR_GET_TIMERSLACK | 
| 2377 | 当:arg2恒等于PR_MCE_KILL_CLEAR | 
| 2382 | 当:arg2恒等于PR_MCE_KILL_SET | 
| 2386 | 否则如果arg3恒等于PR_MCE_KILL_LATE则flags与等于Early kill for mce process policy 的反 | 
| 2388 | 否则如果arg3恒等于PR_MCE_KILL_DEFAULT则flags与等于Early kill for mce process policy 按位或Process policy on mce errors 的值的反 | 
| 2391 | 否则返回:负EINVAL | 
| 2393 | 退出 | 
| 2394 | 默认 | 
| 2395 | 返回:负EINVAL | 
| 2397 | 退出 | 
| 2398 | 当:option恒等于PR_MCE_KILL_GET | 
| 2401 | 如果flags按位与Process policy on mce errors 则error等于如果flags按位与Early kill for mce process policy 则PR_MCE_KILL_EARLY否则PR_MCE_KILL_LATE | 
| 2404 | 否则error等于PR_MCE_KILL_DEFAULT | 
| 2406 | 退出 | 
| 2410 | 当:option恒等于PR_GET_TID_ADDRESS | 
| 2413 | 当:option恒等于PR_SET_CHILD_SUBREAPER | 
| 2414 | is_child_subreaper等于非非arg2 | 
| 2418 | walk_process_tree(me, propagate_has_child_subreaper, NULL) | 
| 2419 | 退出 | 
| 2420 | 当:option恒等于PR_GET_CHILD_SUBREAPER | 
| 2423 | 退出 | 
| 2430 | 当:option恒等于PR_GET_NO_NEW_PRIVS | 
| 2434 | 当:option恒等于PR_GET_THP_DISABLE | 
| 2437 | error等于非非st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from | 
| 2438 | 退出 | 
| 2439 | 当:option恒等于PR_SET_THP_DISABLE | 
| 2451 | 当:option恒等于PR_MPX_DISABLE_MANAGEMENT | 
| 2453 | 返回:负EINVAL | 
| 2454 | 当:option恒等于PR_SET_FP_MODE | 
| 2455 | error等于SET_FP_MODE(me, arg2) | 
| 2456 | 退出 | 
| 2457 | 当:option恒等于PR_GET_FP_MODE | 
| 2458 | error等于GET_FP_MODE(me) | 
| 2459 | 退出 | 
| 2460 | 当:option恒等于set task vector length | 
| 2461 | error等于SVE_SET_VL(arg2) | 
| 2462 | 退出 | 
| 2463 | 当:option恒等于get task vector length | 
| 2464 | error等于SVE_GET_VL() | 
| 2465 | 退出 | 
| 2466 | 当:option恒等于Per task speculation control | 
| 2471 | 当:option恒等于PR_SET_SPECULATION_CTRL | 
| 2486 | 当:option恒等于PR_GET_TAGGED_ADDR_CTRL | 
| 2491 | 默认 | 
| 2495 | 返回:error | 
| 源代码转换工具 开放的插件接口 | X | 
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |