Print this page
8115 parallel zfs mount
@@ -19,17 +19,17 @@
* CDDL HEADER END
*/
/*
* Copyright 2007 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
+ *
+ * Copyright 2017 RackTop Systems.
*/
#ifndef _SYS_KOBJ_H
#define _SYS_KOBJ_H
-#pragma ident "%Z%%M% %I% %E% SMI"
-
#include <sys/modctl.h>
#include <sys/elf.h>
#include <sys/machelf.h>
#include <sys/vmem.h>
#include <sys/sdt.h>
@@ -156,11 +156,11 @@
/* Start of page */
#define F_PAGE(file, off) (off - B_OFFSET(file, off))
#define F_BLKS(file, size) ((size / (file)->_bsize) * (file)->_bsize)
-#if defined(_KERNEL)
+#if defined(_KERNEL) || defined(_FAKE_KERNEL)
extern int kobj_load_module(struct modctl *, int);
extern void kobj_unload_module(struct modctl *);
extern uintptr_t kobj_lookup(struct module *, const char *);
extern Sym *kobj_lookup_all(struct module *, char *, int);
@@ -200,11 +200,11 @@
extern void kobj_texthole_free(caddr_t, size_t);
extern void kobj_stat_get(kobj_stat_t *);
extern void kobj_textwin_alloc(struct module *);
extern void kobj_textwin_free(struct module *);
-#endif /* defined(_KERNEL) */
+#endif /* defined(_KERNEL) || defined(_FAKE_KERNEL) */
#ifdef __cplusplus
}
#endif