---
name: "kvm_native"
section: "3"
platform: "freebsd"
package: "base"
version: "16.0-CURRENT-20261027-61c70dc16a79"
release: "FreeBSD 16.0-CURRENT (2026-10-27)"
platforms: ["freebsd"]
url: "https://new.carta.tech/kvm_native"
---

# kvm\_native(3)

is a kvm descriptor opened on a native kernel image

## NAME

**kvm\_native** – is a kvm descriptor opened on a native kernel image

## LIBRARY

Kernel Data Access Library (libkvm, -lkvm)

## SYNOPSIS

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

*int*\

**kvm\_native**(*kvm\_t \*kd*);

## DESCRIPTION

The **kvm** library provides an interface for accessing kernel virtual memory images for both native kernel images (where the ABI of the kernel executable matches the host system) and non-native kernel images. The **kvm\_native**() function returns a non-zero value if the kvm descriptor *kd* is attached to a native kernel image; otherwise it returns zero.

## RETURN VALUES

The **kvm\_native**() function returns a non-zero value if the kvm descriptor *kd* is attached to a native kernel image; otherwise it returns zero.

## SEE ALSO

[kvm(3)](/kvm/3.md), [kvm\_open2(3)](/kvm_open2/3.md)
