Missing defines for the kernel environment and module metadata lookup

functions
This commit is contained in:
Mike Smith 1998-10-09 01:44:09 +00:00
parent de486d8863
commit 1d13be3330
2 changed files with 14 additions and 2 deletions

View file

@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: linker.h,v 1.4 1998/08/12 08:44:21 dfr Exp $
* $Id: linker.h,v 1.5 1998/09/14 18:31:19 msmith Exp $
*/
#ifndef _SYS_LINKER_H_
@ -191,6 +191,15 @@ caddr_t linker_file_lookup_symbol(linker_file_t file, const char* name,
#define MODINFOMD_KLDIDENT (MODINFOMD_NOCOPY | 0x4000)
#define MODINFOMD_KLDDEP (MODINFOMD_NOCOPY | 0x4001)
/*
* Module lookup
*/
extern caddr_t module_metadata;
extern caddr_t module_search_by_name(const char *name);
extern caddr_t module_search_by_type(const char *type);
extern caddr_t module_search_info(caddr_t mod, int inf);
#ifdef KLD_DEBUG
extern int kld_debug;

View file

@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)systm.h 8.7 (Berkeley) 3/29/95
* $Id: systm.h,v 1.75 1998/09/06 06:25:18 ache Exp $
* $Id: systm.h,v 1.76 1998/09/15 10:07:26 gibbs Exp $
*/
#ifndef _SYS_SYSTM_H_
@ -150,6 +150,9 @@ void setstatclockrate __P((int hzrate));
void hardpps __P((struct timeval *tvp, long usec));
char *getenv __P((char *name));
extern char *kern_envp;
#ifdef APM_FIXUP_CALLTODO
void adjust_timeout_calltodo __P((struct timeval *time_change));
#endif /* APM_FIXUP_CALLTODO */