Print this page
8115 parallel zfs mount

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/kobj.h
          +++ new/usr/src/uts/common/sys/kobj.h
↓ open down ↓ 13 lines elided ↑ open up ↑
  14   14   * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15   15   * If applicable, add the following below this CDDL HEADER, with the
  16   16   * fields enclosed by brackets "[]" replaced with your own identifying
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  /*
  22   22   * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
  23   23   * Use is subject to license terms.
       24 + *
       25 + * Copyright 2017 RackTop Systems.
  24   26   */
  25   27  
  26   28  #ifndef _SYS_KOBJ_H
  27   29  #define _SYS_KOBJ_H
  28   30  
  29      -#pragma ident   "%Z%%M% %I%     %E% SMI"
  30      -
  31   31  #include <sys/modctl.h>
  32   32  #include <sys/elf.h>
  33   33  #include <sys/machelf.h>
  34   34  #include <sys/vmem.h>
  35   35  #include <sys/sdt.h>
  36   36  #include <sys/bootstat.h>
  37   37  
  38   38  #ifdef  __cplusplus
  39   39  extern "C" {
  40   40  #endif
↓ open down ↓ 110 lines elided ↑ open up ↑
 151  151  #define kobj_comphdr(p) ((struct comphdr *)(p)->_dbuf)
 152  152  
 153  153  /* Offset into buffer */
 154  154  #define B_OFFSET(file, off)     (off % (file)->_bsize)
 155  155  
 156  156  /* Start of page */
 157  157  #define F_PAGE(file, off)       (off - B_OFFSET(file, off))
 158  158  
 159  159  #define F_BLKS(file, size)      ((size / (file)->_bsize) * (file)->_bsize)
 160  160  
 161      -#if defined(_KERNEL)
      161 +#if defined(_KERNEL) || defined(_FAKE_KERNEL)
 162  162  
 163  163  extern int kobj_load_module(struct modctl *, int);
 164  164  extern void kobj_unload_module(struct modctl *);
 165  165  extern uintptr_t kobj_lookup(struct module *, const char *);
 166  166  extern Sym *kobj_lookup_all(struct module *, char *, int);
 167  167  extern int kobj_addrcheck(void *, caddr_t);
 168  168  extern int kobj_module_to_id(void *);
 169  169  extern void kobj_getmodinfo(void *, struct modinfo *);
 170  170  extern int kobj_get_needed(void *, short *, int);
 171  171  extern uintptr_t kobj_getsymvalue(char *, int);
↓ open down ↓ 23 lines elided ↑ open up ↑
 195  195  #else
 196  196  #error "ISA not supported"
 197  197  #endif
 198  198  extern caddr_t kobj_text_alloc(vmem_t *, size_t);
 199  199  extern caddr_t kobj_texthole_alloc(caddr_t, size_t);
 200  200  extern void kobj_texthole_free(caddr_t, size_t);
 201  201  extern void kobj_stat_get(kobj_stat_t *);
 202  202  extern void kobj_textwin_alloc(struct module *);
 203  203  extern void kobj_textwin_free(struct module *);
 204  204  
 205      -#endif  /* defined(_KERNEL) */
      205 +#endif  /* defined(_KERNEL) || defined(_FAKE_KERNEL) */
 206  206  
 207  207  #ifdef  __cplusplus
 208  208  }
 209  209  #endif
 210  210  
 211  211  #endif /* !_SYS_KOBJ_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX