KLDFIND(2)
π NAME π
okay so this is the KLDFIND(2) page from the System Calls Manual, and the main character is kldfind β it returns the fileid of a kld file. that's the whole vibe. π
πΈ LIBRARY πΈ
it lives in the Standard C Library (libc, -lc). slay. β¨
β¨ SYNOPSIS β¨
#include <sys/linker.h>
int
kldfind(const char *file);
π¦ DESCRIPTION π¦
bestie, the kldfind() system call returns the fileid of the kld file referenced by file. literally that's it β it's giving βlook up the id, no extra dramaβ. π«Ά
β RETURN VALUES β
kldfind() returns the fileid of the kld file referenced by file. upon error, kldfind() returns -1 and sets errno to indicate the error. periodt. π
π 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.
no cap, ENOENT is the βbestie, that file isn't loaded in the kernelβ error. π
π₯ SEE ALSO π₯
go bother these other pages when you're done:
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. π
mwah π β this page is from Debian, dated March 3, 1999, and it's the KLDFIND(2) page. go off, bestie. πβ¨
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- Copyright (c) 1999 Chris Costello
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms