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...
NAMEkldfind - returns the fileid of a kld file
SYNOPSISIn sys/param.h In sys/linker.h Ft int Fn kldfind const char *file
DESCRIPTIONThe Fn kldfind system call returns the fileid of the kld file referenced by Fa file .
RETURN VALUESThe Fn kldfind system call returns the fileid of the kld file referenced by Fa file . Upon error, Fn kldfind returns -1 and sets errno to indicate the error.
ERRORSerrno is set to the following if Fn kldfind 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.