Print this page
6583 remove whole-process swapping

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/vm/hat.h
          +++ new/usr/src/uts/common/vm/hat.h
↓ open down ↓ 98 lines elided ↑ open up ↑
  99   99   *      allocated a hat structure for as.
 100  100   *
 101  101   * void hat_free_start(hat)
 102  102   *      informs hat layer process has finished executing but as has not
 103  103   *      been cleaned up yet.
 104  104   *
 105  105   * void hat_free_end(hat)
 106  106   *      informs hat layer as is being destroyed.  hat layer cannot use as
 107  107   *      pointer after this call.
 108  108   *
 109      - * void hat_swapin(hat)
 110      - *      allocate any hat resources required for process being swapped in.
 111      - *
 112      - * void hat_swapout(hat)
 113      - *      deallocate hat resources for process being swapped out.
 114      - *
 115  109   * size_t hat_get_mapped_size(hat)
 116  110   *      returns number of bytes that have valid mappings in hat.
 117  111   *
 118  112   * void hat_stats_enable(hat)
 119  113   * void hat_stats_disable(hat)
 120  114   *      enables/disables collection of stats for hat.
 121  115   *
 122  116   * int hat_dup(parenthat, childhat, addr, len, flags)
 123  117   *      Duplicate address translations of the parent to the child.  Supports
 124  118   *      the entire address range or a range depending on flag,
↓ open down ↓ 1 lines elided ↑ open up ↑
 126  120   *
 127  121   * void hat_thread_exit(thread)
 128  122   *      Notifies the HAT that a thread is exiting, called after it has been
 129  123   *      reassigned to the kernel AS.
 130  124   */
 131  125  
 132  126  struct hat *hat_alloc(struct as *);
 133  127  void    hat_free_start(struct hat *);
 134  128  void    hat_free_end(struct hat *);
 135  129  int     hat_dup(struct hat *, struct hat *, caddr_t, size_t, uint_t);
 136      -void    hat_swapin(struct hat *);
 137      -void    hat_swapout(struct hat *);
 138  130  size_t  hat_get_mapped_size(struct hat *);
 139  131  int     hat_stats_enable(struct hat *);
 140  132  void    hat_stats_disable(struct hat *);
 141  133  void    hat_thread_exit(kthread_t *);
 142  134  
 143  135  /*
 144  136   * Operations on a named address within a segment:
 145  137   *
 146  138   * void hat_memload(hat, addr, pp, attr, flags)
 147  139   *      load/lock the given page struct
↓ open down ↓ 480 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX