Print this page
6583 remove whole-process swapping

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/class.h
          +++ new/usr/src/uts/common/sys/class.h
↓ open down ↓ 75 lines elided ↑ open up ↑
  76   76          void    (*cl_exitclass)(void *);
  77   77          int     (*cl_canexit)(kthread_t *, cred_t *);
  78   78          int     (*cl_fork)(kthread_t *, kthread_t *, void *);
  79   79          void    (*cl_forkret)(kthread_t *, kthread_t *);
  80   80          void    (*cl_parmsget)(kthread_t *, void *);
  81   81          int     (*cl_parmsset)(kthread_t *, void *, id_t, cred_t *);
  82   82          void    (*cl_stop)(kthread_t *, int, int);
  83   83          void    (*cl_exit)(kthread_t *);
  84   84          void    (*cl_active)(kthread_t *);
  85   85          void    (*cl_inactive)(kthread_t *);
  86      -        pri_t   (*cl_swapin)(kthread_t *, int);
  87      -        pri_t   (*cl_swapout)(kthread_t *, int);
  88   86          void    (*cl_trapret)(kthread_t *);
  89   87          void    (*cl_preempt)(kthread_t *);
  90   88          void    (*cl_setrun)(kthread_t *);
  91   89          void    (*cl_sleep)(kthread_t *);
  92   90          void    (*cl_tick)(kthread_t *);
  93   91          void    (*cl_wakeup)(kthread_t *);
  94   92          int     (*cl_donice)(kthread_t *, cred_t *, int, int *);
  95   93          pri_t   (*cl_globpri)(kthread_t *);
  96   94          void    (*cl_set_process_group)(pid_t, pid_t, pid_t);
  97   95          void    (*cl_yield)(kthread_t *);
↓ open down ↓ 92 lines elided ↑ open up ↑
 190  188  
 191  189  #define CL_SLEEP(tp)            (*(tp)->t_clfuncs->cl_sleep)(tp)
 192  190  
 193  191  #define CL_STOP(t, why, what)   (*(t)->t_clfuncs->cl_stop)(t, why, what)
 194  192  
 195  193  #define CL_EXIT(t)              (*(t)->t_clfuncs->cl_exit)(t)
 196  194  
 197  195  #define CL_ACTIVE(t)            (*(t)->t_clfuncs->cl_active)(t)
 198  196  
 199  197  #define CL_INACTIVE(t)          (*(t)->t_clfuncs->cl_inactive)(t)
 200      -
 201      -#define CL_SWAPIN(t, flags)     (*(t)->t_clfuncs->cl_swapin)(t, flags)
 202      -
 203      -#define CL_SWAPOUT(t, flags)    (*(t)->t_clfuncs->cl_swapout)(t, flags)
 204  198  
 205  199  #define CL_TICK(t)              (*(t)->t_clfuncs->cl_tick)(t)
 206  200  
 207  201  #define CL_TRAPRET(t)           (*(t)->t_clfuncs->cl_trapret)(t)
 208  202  
 209  203  #define CL_WAKEUP(t)            (*(t)->t_clfuncs->cl_wakeup)(t)
 210  204  
 211  205  #define CL_DONICE(t, cr, inc, ret) \
 212  206          (*(t)->t_clfuncs->cl_donice)(t, cr, inc, ret)
 213  207  
↓ open down ↓ 20 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX