kldnext2
Return the fileid of the next kld file
Usage
#include <sys/param.h>
#include <sys/linker.h>
int
kldnext(int fileid);
Library
Standard C Library (libc, -lc)
Overview
The kldnext() system call returns the fileid of the next kld file (that is, the one after fileid) or 0 if fileid is the last file loaded.
Return values
The kldnext() system call returns the fileid of the next kld file (see DESCRIPTION) or 0. If an error occurs, errno is set to indicate the error.
Errors
The only error set by kldnext() is ENOENT, which is set when fileid refers to a kld file that does not exist (is not loaded).