Print this page
patch vm-cleanup

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/vm/xhat.h
          +++ new/usr/src/uts/common/vm/xhat.h
↓ open down ↓ 19 lines elided ↑ open up ↑
  20   20   * CDDL HEADER END
  21   21   */
  22   22  /*
  23   23   * Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
  24   24   * Use is subject to license terms.
  25   25   */
  26   26  
  27   27  #ifndef _VM_XHAT_H
  28   28  #define _VM_XHAT_H
  29   29  
  30      -#pragma ident   "%Z%%M% %I%     %E% SMI"
  31      -
  32      -
  33   30  #ifdef  __cplusplus
  34   31  extern "C" {
  35   32  #endif
  36   33  
  37   34  #ifndef _ASM
  38   35  
  39   36  #include <sys/types.h>
  40   37  #include <vm/page.h>
  41   38  #include <sys/kmem.h>
  42   39  
  43   40  struct xhat;
  44   41  struct xhat_hme_blk;
  45   42  
  46   43  struct xhat_ops {
  47   44          struct xhat     *(*xhat_alloc)(void *);
  48   45          void            (*xhat_free)(struct xhat *);
  49   46          void            (*xhat_free_start)(struct xhat *);
  50   47          void            (*xhat_free_end)(struct xhat *);
  51   48          int             (*xhat_dup)(struct xhat *, struct xhat *, caddr_t,
  52   49              size_t, uint_t);
  53      -        void            (*xhat_swapin)(struct xhat *);
  54      -        void            (*xhat_swapout)(struct xhat *);
  55   50          void            (*xhat_memload)(struct xhat *, caddr_t, struct page *,
  56   51                              uint_t, uint_t);
  57   52          void            (*xhat_memload_array)(struct xhat *, caddr_t, size_t,
  58   53                              struct page **, uint_t, uint_t);
  59   54          void            (*xhat_devload)(struct xhat *, caddr_t, size_t, pfn_t,
  60   55              uint_t, int);
  61   56          void            (*xhat_unload)(struct xhat *, caddr_t, size_t, uint_t);
  62   57          void            (*xhat_unload_callback)(struct xhat *, caddr_t, size_t,
  63   58              uint_t, hat_callback_t *);
  64   59          void            (*xhat_setattr)(struct xhat *, caddr_t, size_t, uint_t);
↓ open down ↓ 15 lines elided ↑ open up ↑
  80   75          }
  81   76  
  82   77  #define XHAT_FREE_START(a) \
  83   78          XHAT_HOPS(a, xhat_free_start, ((struct xhat *)(a)))
  84   79  #define XHAT_FREE_END(a) \
  85   80          XHAT_HOPS(a, xhat_free_end, ((struct xhat *)(a)))
  86   81  #define XHAT_DUP(a, b, c, d, e) \
  87   82          ((XHAT_PROPS(a)->xhat_dup == NULL) ? (0) : \
  88   83          XHAT_PROPS(a)->xhat_dup((struct xhat *)(a), \
  89   84                                  (struct xhat *)(b), c, d, e))
  90      -#define XHAT_SWAPIN(a) \
  91      -        XHAT_HOPS(a, xhat_swapin, ((struct xhat *)(a)))
  92      -#define XHAT_SWAPOUT(a) \
  93      -        XHAT_HOPS(a, xhat_swapout, ((struct xhat *)(a)))
  94   85  #define XHAT_MEMLOAD(a, b, c, d, e) \
  95   86          XHAT_HOPS(a, xhat_memload, ((struct xhat *)(a), b, c, d, e))
  96   87  #define XHAT_MEMLOAD_ARRAY(a, b, c, d, e, f) \
  97   88          XHAT_HOPS(a, xhat_memload_array, ((struct xhat *)(a), b, c, d, e, f))
  98   89  #define XHAT_DEVLOAD(a, b, c, d, e, f) \
  99   90          XHAT_HOPS(a, xhat_devload, ((struct xhat *)(a), b, c, d, e, f))
 100   91  #define XHAT_UNLOAD(a, b, c, d) \
 101   92          XHAT_HOPS(a, xhat_unload, ((struct xhat *)(a), b, c, d))
 102   93  #define XHAT_UNLOAD_CALLBACK(a, b, c, d, e) \
 103   94          XHAT_HOPS(a, xhat_unload_callback, ((struct xhat *)(a), b, c, d, e))
↓ open down ↓ 78 lines elided ↑ open up ↑
 182  173  int     xhat_detach_xhat(xhat_provider_t *, struct as *);
 183  174  pfn_t   xhat_insert_xhatblk(page_t *, struct xhat *, void **);
 184  175  int     xhat_delete_xhatblk(void *, int);
 185  176  void    xhat_hat_hold(struct xhat *);
 186  177  void    xhat_hat_rele(struct xhat *);
 187  178  int     xhat_hat_holders(struct xhat *);
 188  179  
 189  180  void    xhat_free_start_all(struct as *);
 190  181  void    xhat_free_end_all(struct as *);
 191  182  int     xhat_dup_all(struct as *, struct as *, caddr_t, size_t, uint_t);
 192      -void    xhat_swapout_all(struct as *);
 193  183  void    xhat_unload_callback_all(struct as *, caddr_t, size_t, uint_t,
 194  184      hat_callback_t *);
 195  185  void    xhat_setattr_all(struct as *, caddr_t, size_t, uint_t);
 196  186  void    xhat_clrattr_all(struct as *, caddr_t, size_t, uint_t);
 197  187  void    xhat_chgattr_all(struct as *, caddr_t, size_t, uint_t);
 198  188  void    xhat_chgprot_all(struct as *, caddr_t, size_t, uint_t);
 199  189  void    xhat_unshare_all(struct as *, caddr_t, size_t);
 200  190  
 201  191  
 202  192  #endif /* _ASM */
 203  193  
 204  194  #ifdef  __cplusplus
 205  195  }
 206  196  #endif
 207  197  
 208  198  #endif  /* _VM_XHAT_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX