KVM_NATIVE(3)
β¨ KVM_NATIVE(3) β¨
okay so real talk β this is a page from the Library Functions Manual, and we're about to get into kvm_native π
like, don't worry, it's actually so simple bestie, i promise π«Ά
π NAME π
kvm_native β the lil function that tells you whether a kvm descriptor was opened on a native kernel image π no cap, that's literally the whole job.
π LIBRARY π
Kernel Data Access Library β that's libkvm, and you link it with -lkvm β¨
π¦ SYNOPSIS π¦
#include <kvm.h>
int
kvm_native(kvm_t *kd);
πΈ DESCRIPTION πΈ
so the kvm library is giving "i give you access to kernel virtual memory images" energy π₯ β and it handles both native kernel images (where the ABI of the kernel executable matches the host system, iykyk) and non-native kernel images. main character library behaviour tbh.
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 π that's it. that's the whole vibe check.
β 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 π
lowkey iconic that DESCRIPTION and RETURN VALUES say the exact same thing β the man page said it once and then said it again for the people in the back π£ respect.
π SEE ALSO π
and that's the whole page, bestie π§π this one came from Debian, dated March 15, 2017 β yeah she's an older queen but she still ate πβ¨ mwah, go read kvm(3) next π
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- Copyright (c) 2015 John Baldwin <jhb@FreeBSD.org>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms