---
name: "kinit"
section: "2"
platform: "linux"
package: "lam2-dev"
version: "6.3.2-3"
release: "Debian 2.2 (Potato)"
platforms: ["linux"]
url: "https://new.carta.tech/kinit/2"
---

# kinit(2)

Initialize a LAM process.

## NAME

kinit - Initialize a LAM process.

## SYNOPSIS

int kinit (int priority);

## DESCRIPTION

*kinit()* initializes all internal runtime LAM data structures, most notably those necessary for interfacing with the LAM daemon. The *priority* argument sets the calling process's message synchronizing priority. Every LAM process must call *kinit()* prior to any other LAM function, however this is usually done as part of a call to [kenter(2)](/kenter/2.md).

*kinit()* calls [kattach(2)](/kattach/2.md) after initialization to register the process with the local LAM daemon.

## ERRORS

- ENOKDESCRIPTORS

  The LAM daemon is out of process descriptors and is unable to attach additional processes.

- ENOKERNEL

  The LAM daemon is not running.

## SEE ALSO

[kexit(2)](/kexit/2.md), [kattach(2)](/kattach/2.md), [kenter(2)](/kenter/2.md)
