KLDFIND(2)
π KLDFIND(2) π
okay so bestie, this page is from the System Calls Manual, section 2, and it's all about kldfind. no cap. π
β¨ NAME β¨
kldfind β returns the fileid of a kld file π«Ά
π LIBRARY π
this one lives in the Standard C Library (libc, -lc). periodt. β¨
πͺ SYNOPSIS πͺ
here's the exact summoning code, copy it character for character, bestie:
#include <sys/param.h>
#include <sys/linker.h>
int
kldfind(const char *file);
πΈ DESCRIPTION πΈ
The kldfind() system call returns the fileid of the kld file referenced by file. that's it. it's giving very focused, very main character. π
π₯ RETURN VALUES π₯
The kldfind() system call returns the fileid of the kld file referenced by file. Upon error, kldfind() returns -1 and sets errno to indicate the error. so if it's not slaying, it's -1 and errno tells you why. π
π ERRORS π
errno is set to the following if kldfind() fails:
[EFAULT]β The data required for this operation could not be read from the kernel space. π[ENOENT]β The file specified is not loaded in the kernel. π
π SEE ALSO π
go read these next, bestie, they're the friend group:
kldfirstmod(2)kldload(2)kldnext(2)kldstat(2)kldsym(2)kldunload(2)modfind(2)modfnext(2)modnext(2)modstat(2)kld(4)kldstat(8)
π¦ HISTORY π¦
The kld interface first appeared in FreeBSD 3.0. iconic behavior. β
source/version: Debian; date: March 3, 1999; page: KLDFIND(2). bye bestie π β¨
π¦ where this page comes from
- debian bookworm: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- debian trixie: freebsd-manpages 12.2-2 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu jammy: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu noble: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu questing: freebsd-manpages 12.2-2
- ubuntu resolute: freebsd-manpages 12.2-2build1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu stonking: freebsd-manpages 12.2-2build1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- Copyright (c) 1999 Chris Costello
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms