kldfirstmod(2)

kldfirstmod2

Return first module id from the kld file specified

Usage

#include <sys/param.h>

#include <sys/linker.h>

int

kldfirstmod(int fileid);

Library

Standard C Library (libc, -lc)

Overview

The kldfirstmod() system call returns the module id pertaining to the first module referenced by fileid.

Return values

The kldfirstmod() will return the id of the first module referenced by fileid or 0 if there are no references.

Errors

[ENOENT]

The kld file referenced by fileid was not found.

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.