Print this page
patch remove-swapinout-class-ops

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