*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->FreeBSD man pages -> modnext (2)              



NAME    [Toc]    [Back]

     modnext -- return the modid of the next kernel module

LIBRARY    [Toc]    [Back]

     Standard C Library (libc, -lc)

SYNOPSIS    [Toc]    [Back]

     #include <sys/param.h>
     #include <sys/module.h>

     modnext(int modid);

     modfnext(int modid);

DESCRIPTION    [Toc]    [Back]

     The modnext() system call returns the modid of the next kernel module
     (that is, the one after modid) or 0 if modid is the last module in the

     If the modid value is 0, then modnext() will return the modid of the
     first module.  The modfnext() system call must always be given a valid

RETURN VALUES    [Toc]    [Back]

     The modnext() system call returns the modid of the next module (see
     DESCRIPTION) or 0.  If an error occurs, errno is set to indicate the

ERRORS    [Toc]    [Back]

     The only error set by modnext() is ENOENT, which is set when modid refers
     to a kernel module that does not exist (isn't loaded).

SEE ALSO    [Toc]    [Back]

     kldfind(2), kldfirstmod(2), kldload(2), kldnext(2), kldstat(2),
     kldsym(2), kldunload(2), modfind(2), modstat(2), kld(4), kldstat(8)

HISTORY    [Toc]    [Back]

     The kld interface first appeared in FreeBSD 3.0.

FreeBSD 5.2.1		      September 28, 2000		 FreeBSD 5.2.1
[ Back ]
 Similar pages
Name OS Title
modfind FreeBSD returns the modid of a kernel module
ldr_inq_region Tru64 Return module information about a region in a loaded module
ldr_next_module Tru64 Return the next module ID for a process
kldfirstmod FreeBSD return first module id from the kld file specified
ldr_inq_module Tru64 Return information about a loaded module
MODULE_VERSION FreeBSD set kernel module version
MODULE_DEPEND FreeBSD set kernel module dependencies
modload OpenBSD load a kernel module
modunload OpenBSD unload a kernel module
arp Linux Linux ARP kernel module.
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service