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.