Print this page
seg_inherit_notsup is redundant since segop_inherit checks for NULL properly

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/vm/seg_kp.c
          +++ new/usr/src/uts/common/vm/seg_kp.c
↓ open down ↓ 143 lines elided ↑ open up ↑
 144  144  
 145  145  static struct   seg_ops segkp_ops = {
 146  146          .fault          = segkp_fault,
 147  147          .checkprot      = segkp_checkprot,
 148  148          .kluster        = segkp_kluster,
 149  149          .dump           = segkp_dump,
 150  150          .pagelock       = segkp_pagelock,
 151  151          .getmemid       = segkp_getmemid,
 152  152          .getpolicy      = segkp_getpolicy,
 153  153          .capable        = segkp_capable,
 154      -        .inherit        = seg_inherit_notsup,
 155  154  };
 156  155  
 157  156  
 158  157  static void segkpinit_mem_config(struct seg *);
 159  158  
 160  159  static uint32_t segkp_indel;
 161  160  
 162  161  /*
 163  162   * Allocate the segment specific private data struct and fill it in
 164  163   * with the per kp segment mutex, anon ptr. array and hash table.
↓ open down ↓ 1270 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX