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

  man pages->FreeBSD man pages -> modfind (2)              
Title
Content
Arch
Section
 

MODFIND(2)

Contents


NAME    [Toc]    [Back]

     modfind -- returns the modid of a kernel module

LIBRARY    [Toc]    [Back]

     Standard C Library (libc, -lc)

SYNOPSIS    [Toc]    [Back]

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

     int
     modfind(const char *modname);

DESCRIPTION    [Toc]    [Back]

     The modfind() system call returns the modid of the kernel module referenced
 by modname.

RETURN VALUES    [Toc]    [Back]

     The modfind() system call returns the modid of the kernel module referenced
 by file.  Upon error, modfind() returns -1 and sets errno to indicate
 the error.

ERRORS    [Toc]    [Back]

     errno is set to the following if modfind() fails:

     [EFAULT]		The data required for this operation could not be read
			from the kernel space.

     [ENOENT]		The file specified is not loaded in the kernel.

SEE ALSO    [Toc]    [Back]

      
      
     kldfind(2), kldfirstmod(2), kldload(2), kldnext(2), kldstat(2),
     kldsym(2), kldunload(2), modfnext(2), modnext(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
modfnext FreeBSD return the modid of the next kernel module
modnext FreeBSD return the modid of the next kernel module
openpam_get_option FreeBSD returns the value of a module option
MODULE_DEPEND FreeBSD set kernel module dependencies
MODULE_VERSION FreeBSD set kernel module version
modunload OpenBSD unload a kernel module
modload OpenBSD load a kernel module
arp Linux Linux ARP kernel module.
modstat FreeBSD get status of kernel module
insmod Linux install loadable kernel module
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service