kldfind (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
kldfind - returns the fileid of a kld fileLIBRARY
Lb libcSYNOPSIS
In sys/param.h In sys/linker.h Ft int Fn kldfind const char *fileDESCRIPTION
The Fn kldfind system call returns the fileid of the kld file referenced by Fa file .RETURN VALUES
The 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.ERRORS
errno 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.