wasm-posix-host
    Preparing search index...

    Interface ProcessSnapshot

    A snapshot of one process from the kernel's table. Mirrors the binary record kernel_enum_procs writes — see crates/kernel/src/wasm_api.rs (kernel_enum_procs) for the authoritative wire format.

    interface ProcessSnapshot {
        cmdline: string;
        comm: string;
        gid: number;
        memoryBytes?: number;
        pid: number;
        ppid: number;
        state: "R" | "Z" | "S" | "D" | "T" | "I";
        uid: number;
        vsizeBytes: number;
    }
    Index

    Properties

    cmdline: string

    Space-separated argv (we decode the kernel's null-separated bytes).

    comm: string

    Basename of argv[0], or "[kernel]" for an empty argv.

    gid: number
    memoryBytes?: number

    Current WebAssembly.Memory buffer size for this process, in bytes.

    pid: number
    ppid: number
    state: "R" | "Z" | "S" | "D" | "T" | "I"

    'R' (running) | 'Z' (zombie); future: 'S','D','T','I'.

    uid: number

    Effective user/group IDs for ps-style USER display.

    vsizeBytes: number

    Sum of mmap-region sizes for this process, in bytes.