// SPDX-License-Identifier: MPL-2.0 use super::*; /// Represents the inode at `/proc/self`. pub struct SelfSymOps; impl SelfSymOps { pub fn new_inode(parent: Weak) -> Arc { ProcSymBuilder::new(Self).parent(parent).build().unwrap() } } impl SymOps for SelfSymOps { fn read_link(&self) -> Result { Ok(current!().pid().to_string()) } }