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

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

KLDFIND(2)

Contents


NAME    [Toc]    [Back]

     kldfind -- returns the fileid of a kld file

LIBRARY    [Toc]    [Back]

     Standard C Library (libc, -lc)

SYNOPSIS    [Toc]    [Back]

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

     int
     kldfind(const char *file);

DESCRIPTION    [Toc]    [Back]

     The kldfind() system call returns the fileid of the kld file referenced
     by file.

RETURN VALUES    [Toc]    [Back]

     The kldfind() system call returns the fileid of the kld file referenced
     by file.  Upon error, kldfind() returns -1 and sets errno to indicate the
     error.

ERRORS    [Toc]    [Back]

     errno is set to the following if kldfind() 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]

      
      
     kldfirstmod(2), kldload(2), kldnext(2), kldstat(2), kldsym(2),
     kldunload(2), modfind(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			 March 3, 1999			 FreeBSD 5.2.1
[ Back ]
 Similar pages
Name OS Title
kldnext FreeBSD return the fileid of the next kld file
realpath IRIX returns the real file name
pxffileno IRIX Returns the file descriptor for a specified unit
dirname Tru64 Returns the base file name or directory portion of a path name
basename Tru64 Returns the base file name or directory portion of a path name
vfs_getvfs FreeBSD returns a mount point given its file system identifier
asnqfile IRIX Returns the assign options currently in effect for a file name or unit number
numblks IRIX Returns the current size of a file in 4096-byte blocks
maplun IRIX returns the integer file descriptor for a Fortran logical unit number
getzbuffer IRIX returns whether z-buffering is on or off
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service