Function process_id

Source
pub fn process_id() -> u64
Available on non-crate feature native-simulator only.
Expand description

This syscall is used to get the current process id. Root process ID is 0. Note: available after ckb 2nd hardfork.