Skip to main content

run

Function run 

Source
pub async fn run(boot_time_ns: u64, init_time_ns: u64) -> AgentdResult<()>
Expand description

Runs the main agent loop.

Discovers the 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().