Print this page
6154 const-ify segment ops structures

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/vm/vm_usage.c
          +++ new/usr/src/uts/common/vm/vm_usage.c
↓ open down ↓ 289 lines elided ↑ open up ↑
 290  290                                                  /* for calc thread */
 291  291          vmu_bound_t     *vmu_free_bounds;
 292  292          vmu_object_t    *vmu_free_objects;
 293  293          vmu_entity_t    *vmu_free_entities;
 294  294          vmu_zone_t      *vmu_free_zones;
 295  295  } vmu_data_t;
 296  296  
 297  297  extern struct as kas;
 298  298  extern proc_t *practive;
 299  299  extern zone_t *global_zone;
 300      -extern struct seg_ops segvn_ops;
 301      -extern struct seg_ops segspt_shmops;
      300 +extern const struct seg_ops segvn_ops;
      301 +extern const struct seg_ops segspt_shmops;
 302  302  
 303  303  static vmu_data_t vmu_data;
 304  304  static kmem_cache_t *vmu_bound_cache;
 305  305  static kmem_cache_t *vmu_object_cache;
 306  306  
 307  307  /*
 308  308   * Comparison routine for AVL tree. We base our comparison on vmb_start.
 309  309   */
 310  310  static int
 311  311  bounds_cmp(const void *bnd1, const void *bnd2)
↓ open down ↓ 1721 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX