Copyright (c) 1999 Chris Costello All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or oth...
NAMEmodfind - returns the modid of a kernel module
SYNOPSISIn sys/param.h In sys/module.h Ft int Fn modfind const char *modname
DESCRIPTIONThe Fn modfind system call returns the modid of the kernel module referenced by Fa modname .
RETURN VALUESThe Fn modfind system call returns the modid of the kernel module referenced by Fa modname . Upon error, Fn modfind returns -1 and sets errno to indicate the error.
ERRORSerrno is set to the following if Fn modfind fails:
- Bq Er EFAULT
- The data required for this operation could not be read from the kernel space.
- Bq Er ENOENT
- The file specified is not loaded in the kernel.