---
name: "iv_main"
section: "3"
platform: "linux"
package: "libivykis-dev"
version: "0.43.2-1+b1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/iv_main"
---

# iv\_main(3)

enter the ivykis main loop

## NAME

iv\_main - enter the ivykis main loop

## SYNOPSIS

**#include \<iv.h\>**

**void iv\_main(void);**\

## DESCRIPTION

**iv\_main** enters the current thread's ivykis main loop.

The ivykis main loop consists of checking the status of the registered file descriptors, timers and tasks, and either calling callback functions corresponding to active objects, or blocking until an event arrives.

Each thread that wants to use ivykis must individually call **iv\_main** to enter the ivykis main loop -- but only after having called [**iv\_init**(3)](/iv_init/3.md) earlier.

## SEE ALSO

[**ivykis**(3)](/ivykis/3.md), [**iv\_examples**(3)](/iv_examples/3.md), [**iv\_quit**(3)](/iv_quit/3.md)
