modfind (2)
Leading comments
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...
NAME
modfind - returns the modid of a kernel moduleLIBRARY
Lb libcSYNOPSIS
In sys/param.h In sys/module.h Ft int Fn modfind const char *modnameDESCRIPTION
The Fn modfind system call returns the modid of the kernel module referenced by Fa modname .RETURN VALUES
The Fn modfind system call returns the modid of the kernel module referenced by Fa file . Upon error, Fn modfind returns -1 and sets errno to indicate the error.ERRORS
errno 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.