// SPDX-License-Identifier: MPL-2.0 use super::*; /// Represents the inode at `/proc/[pid]/exe`. pub struct ExeSymOps(Arc); impl ExeSymOps { pub fn new_inode(process_ref: Arc, parent: Weak) -> Arc { ProcSymBuilder::new(Self(process_ref)) .parent(parent) .build() .unwrap() } } impl SymOps for ExeSymOps { fn read_link(&self) -> Result { Ok(self.0.executable_path()) } }