Skip to main content

run

Function run 

Source
pub async fn run(
    boot_time_ns: u64,
    init_time_ns: u64,
    config: &AgentdConfig,
    port_file: File,
    boot_console: BootConsoleState,
) -> AgentdResult<()>
Expand description

Runs the main agent loop.

Reuses the already-open virtio serial port, sends core.ready with boot timing data, then enters the main select loop handling serial I/O, process output, and heartbeat.

  • boot_time_ns: CLOCK_BOOTTIME at main() start (kernel boot duration).
  • init_time_ns: nanoseconds spent in init::init().