Print this page
patch sccs-keywords
patch SEGOP_SWAPOUT-delete

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/vm/seg.h
          +++ new/usr/src/uts/common/vm/seg.h
↓ open down ↓ 31 lines elided ↑ open up ↑
  32   32   * All Rights Reserved
  33   33   *
  34   34   * University Acknowledgment- Portions of this document are derived from
  35   35   * software developed by the University of California, Berkeley, and its
  36   36   * contributors.
  37   37   */
  38   38  
  39   39  #ifndef _VM_SEG_H
  40   40  #define _VM_SEG_H
  41   41  
  42      -#pragma ident   "%Z%%M% %I%     %E% SMI"
  43      -
  44   42  #include <sys/vnode.h>
  45   43  #include <sys/avl.h>
  46   44  #include <vm/seg_enum.h>
  47   45  #include <vm/faultcode.h>
  48   46  #include <vm/hat.h>
  49   47  
  50   48  #ifdef  __cplusplus
  51   49  extern "C" {
  52   50  #endif
  53   51  
↓ open down ↓ 64 lines elided ↑ open up ↑
 118  116  struct  seg_ops {
 119  117          int     (*dup)(struct seg *, struct seg *);
 120  118          int     (*unmap)(struct seg *, caddr_t, size_t);
 121  119          void    (*free)(struct seg *);
 122  120          faultcode_t (*fault)(struct hat *, struct seg *, caddr_t, size_t,
 123  121              enum fault_type, enum seg_rw);
 124  122          faultcode_t (*faulta)(struct seg *, caddr_t);
 125  123          int     (*setprot)(struct seg *, caddr_t, size_t, uint_t);
 126  124          int     (*checkprot)(struct seg *, caddr_t, size_t, uint_t);
 127  125          int     (*kluster)(struct seg *, caddr_t, ssize_t);
 128      -        size_t  (*swapout)(struct seg *);
 129  126          int     (*sync)(struct seg *, caddr_t, size_t, int, uint_t);
 130  127          size_t  (*incore)(struct seg *, caddr_t, size_t, char *);
 131  128          int     (*lockop)(struct seg *, caddr_t, size_t, int, int, ulong_t *,
 132  129                          size_t);
 133  130          int     (*getprot)(struct seg *, caddr_t, size_t, uint_t *);
 134  131          u_offset_t      (*getoffset)(struct seg *, caddr_t);
 135  132          int     (*gettype)(struct seg *, caddr_t);
 136  133          int     (*getvp)(struct seg *, caddr_t, struct vnode **);
 137  134          int     (*advise)(struct seg *, caddr_t, size_t, uint_t);
 138  135          void    (*dump)(struct seg *);
↓ open down ↓ 73 lines elided ↑ open up ↑
 212  209  
 213  210  #define SEGOP_DUP(s, n)             (*(s)->s_ops->dup)((s), (n))
 214  211  #define SEGOP_UNMAP(s, a, l)        (*(s)->s_ops->unmap)((s), (a), (l))
 215  212  #define SEGOP_FREE(s)               (*(s)->s_ops->free)((s))
 216  213  #define SEGOP_FAULT(h, s, a, l, t, rw) \
 217  214                  (*(s)->s_ops->fault)((h), (s), (a), (l), (t), (rw))
 218  215  #define SEGOP_FAULTA(s, a)          (*(s)->s_ops->faulta)((s), (a))
 219  216  #define SEGOP_SETPROT(s, a, l, p)   (*(s)->s_ops->setprot)((s), (a), (l), (p))
 220  217  #define SEGOP_CHECKPROT(s, a, l, p) (*(s)->s_ops->checkprot)((s), (a), (l), (p))
 221  218  #define SEGOP_KLUSTER(s, a, d)      (*(s)->s_ops->kluster)((s), (a), (d))
 222      -#define SEGOP_SWAPOUT(s)            (*(s)->s_ops->swapout)((s))
 223  219  #define SEGOP_SYNC(s, a, l, atr, f) \
 224  220                  (*(s)->s_ops->sync)((s), (a), (l), (atr), (f))
 225  221  #define SEGOP_INCORE(s, a, l, v)    (*(s)->s_ops->incore)((s), (a), (l), (v))
 226  222  #define SEGOP_LOCKOP(s, a, l, atr, op, b, p) \
 227  223                  (*(s)->s_ops->lockop)((s), (a), (l), (atr), (op), (b), (p))
 228  224  #define SEGOP_GETPROT(s, a, l, p)   (*(s)->s_ops->getprot)((s), (a), (l), (p))
 229  225  #define SEGOP_GETOFFSET(s, a)       (*(s)->s_ops->getoffset)((s), (a))
 230  226  #define SEGOP_GETTYPE(s, a)         (*(s)->s_ops->gettype)((s), (a))
 231  227  #define SEGOP_GETVP(s, a, vpp)      (*(s)->s_ops->getvp)((s), (a), (vpp))
 232  228  #define SEGOP_ADVISE(s, a, l, b)    (*(s)->s_ops->advise)((s), (a), (l), (b))
↓ open down ↓ 49 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX