---
name: "hal_ready"
section: "3hal"
platform: "linux"
package: "linuxcnc-uspace-dev"
version: "1:2.9.4-2+deb13u1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/hal_ready"
---

# hal\_ready(3hal)

indicates that this component is ready

## NAME

hal\_ready - indicates that this component is ready

## SYNTAX

 hal\_ready(int *comp\_id*)

## ARGUMENTS

- *comp\_id*

  A HAL component identifier returned by an earlier call to **hal\_init**.

## DESCRIPTION

**hal\_ready** indicates that this component is ready (has created all its pins, parameters, and functions).  This must be called in any realtime HAL component before its **rtapi\_app\_init** exits, and in any non-realtime component before it enters its main loop.

## RETURN VALUE

Returns a HAL status code.
