Print this page
dccp: clock_t

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/inet/dccp/dccp_stats.c
          +++ new/usr/src/uts/common/inet/dccp/dccp_stats.c
↓ open down ↓ 473 lines elided ↑ open up ↑
 474  474  
 475  475          bcopy(&template, ksp->ks_data, sizeof (template));
 476  476          ksp->ks_private = (void *)(uintptr_t)stackid;
 477  477          ksp->ks_update = dccp_kstat2_update;
 478  478  
 479  479          kstat_install(ksp);
 480  480  
 481  481          return (ksp);
 482  482  }
 483  483  
      484 +/*
      485 + * Destroy DCCP kernel statistics.
      486 + */
 484  487  void
 485  488  dccp_kstat2_fini(netstackid_t stackid, kstat_t *ksp)
 486  489  {
 487  490          if (ksp != NULL) {
 488  491                  ASSERT(stackid == (netstackid_t)(uintptr_t)ksp->ks_private);
 489  492                  kstat_delete_netstack(ksp, stackid);
 490  493          }
 491  494  }
 492  495  
 493  496  /*
↓ open down ↓ 87 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX