kldnext(2)

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).

History

The kld interface first appeared in FreeBSD 3.0.

From freebsd-manpages 6.0-5 in Debian 4.0 (Etch). Parsed by carta from the page's mdoc source.