mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-21 16:33:24 +00:00
9 lines
213 B
Rust
9 lines
213 B
Rust
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
use super::SyscallReturn;
|
|
use crate::prelude::*;
|
|
|
|
pub fn sys_getppid(ctx: &Context) -> Result<SyscallReturn> {
|
|
Ok(SyscallReturn::Return(ctx.process.parent().pid() as _))
|
|
}
|