#include <sys/param.h>
#include <sys/module.h> int
modfind (const char *modname);
DESCRIPTION
The
modfind ();
system call
returns the modid of the kernel module referenced by
Fa modname .
RETURN VALUES
The
modfind ();
system call
returns the modid of the kernel module referenced by
Fa file .
Upon error,
modfind ();
returns -1 and sets
errno
to indicate the error.
ERRORS
errno
is set to the following if
modfind ();
fails:
Bq Er EFAULT
The data required for this operation could not be read from the kernel space.