get_ppid
os
0.1.0
get_
ppid
Sections
返回值:
In os::
kernel::
syscall::
task
os
::
kernel
::
syscall
::
task
Function
get_
ppid
Copy item path
Source
pub fn get_ppid() -> c_int
Expand description
获取当前任务的父进程 ID
§
返回值:
父进程 ID, 该进程要么是创建该进程的进程, 要么是重新归属的父进程