kstat2_hist_add_value(9f) 맨 페이지 - 윈디하나의 솔라나라

개요

섹션
맨 페이지 이름
검색(S)

kstat2_hist_add_value(9f)

kstat2_hist_add_value(9F)      Kernel Functions      kstat2_hist_add_value(9F)



NAME
       kstat2_hist_add_value  -  create  and initialize a new kstat whose data
       represents a histogram

SYNOPSIS
       #include <sys/types.h>
       #include <sys/kstat2.h>

       void kstat2_hist_add_value(kstat2_t *ksp2, uint64_t value);

INTERFACE LEVEL
       Solaris DDI specific (Solaris DDI)

PARAMETERS
       ksp2     A kstat created  by  kstat2_create_histogram()  function.  For
                more information, see kstat2_create_histogram(9F)


       value    The value to be added to the histogram.



DESCRIPTION
       kstat2_hist_add_value()  function  is  used  to add data to a histogram
       kstat.


       The function first determines the bucket into which the supplied  value
       will  go.  If the bucket already exists, its value is incremented by 1.
       If the bucket does not exist it is created along with any earlier buck‐
       ets required from the histogram's range_min.

RETURN VALUES
       No value is returned.

CONTEXT
       The  kstat2_hist_add_value() function can be called from user or kernel
       context.

SEE ALSO
       kstat2_create_histogram(9F), kstat2_hold_bykid(9F), kstat2_rele(9F)

NOTES
       In order to minimize latency, the kstat2_hist_add_value() function does
       not  attempt  to  obtain  the  lock of the passed-in kstat. If kstat is
       deleted by another thread while a thread is in  kstat2_hist_add_value()
       function,  the caller must lock the kstat using the kstat2_hold_bykid()
       function prior to calling  the  kstat2_hist_add_value()  function,  and
       release it with the kstat2_rele() function later.



Oracle Solaris 11.4               07 Dec 2016        kstat2_hist_add_value(9F)
맨 페이지 내용의 저작권은 맨 페이지 작성자에게 있습니다.
RSS ATOM XHTML 5 CSS3