kldfirstmod(2freebsd)

kldfirstmod2freebsd

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.

Releases

9 releases since Debian 5.0 (Lenny); the text changed 6 times.

  1. 5.0
  2. 6.0
  3. 7
  4. 8
  5. 9
  6. 10
  7. 11–13

History

The kld interface first appeared in FreeBSD 3.0.

From freebsd-manpages 12.2-2 in Debian 13 (Trixie). Parsed by carta from the page's mdoc source.