kldfirstmod (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
kldfirstmod - return first module id from the kld file specifiedLIBRARY
Lb libcSYNOPSIS
In sys/param.h In sys/linker.h Ft int Fn kldfirstmod int fileidDESCRIPTION
The Fn kldfirstmod system call returns the module id pertaining to the first module referenced by Fa fileid .RETURN VALUES
The Fn kldfirstmod will return the id of the first module referenced by Fa fileid or 0 if there are no references.ERRORS
- Bq Er ENOENT
- The kld file referenced by Fa fileid was not found.