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

개요

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

kstat2_nv_setstr(9f)

kstat2_nv_setstr(9F)           Kernel Functions           kstat2_nv_setstr(9F)



NAME
       kstat2_nv_setstr,  kstat2_nv_setstrs,  kstat2_nv_setints - set a string
       or array kstat value

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

       void kstat2_nv_setstr(kstat2_named_t *knp, char *str)

       void kstat2_nv_setstrs(kstat2_named_t *knp,
            kstat2_named_str_t *arr, uint32_t len);

       void kstat2_nv_setints(kstat2_named_t *knp,
            uint64_t *arr, uint32_t len);

INTERFACE LEVEL
       Solaris DDI specific (Solaris DDI)

PARAMETERS
       knp    Pointer to storage for a kstat2 name-value pair.




       kstat2_nv_setstr()


       str    Null-terminated character string which is  the  value  for  this
              name-value  pair. NULL and empty string are acceptable values. A
              string can be up to 2^16-1 characters in length,  including  the
              NULL.




       kstat2_nv_setstrs() and kstat2_nv_setints()


       arr    Array  of  kstat2_named_str_t or uint64_t which is the value for
              this name-value pair.


       len    Number of strings or integers in the array. Arrays can  have  up
              to 2^32-1 elements.



DESCRIPTION
       The  kstat2_nv_setstr()  function  is  used  to set a string value on a
       given kstat name-value pair structure.


       The kstat2_nv_setstrs() function is used to set a  string  array  on  a
       given kstat name-value pair structure. If the supplied value for arr is
       NULL, the internal array length is set to zero.


       The kstat2_nv_setints() function is used to set an integer array  on  a
       given kstat name-value pair structure. If the supplied value for arr is
       NULL, the internal array length is set to zero.

RETURN VALUES
       None

CONTEXT
       These functions can be called from any context.

SEE ALSO
       kstat2_nv_init(9F), kstat2(9S), kstat2_named(9S)

NOTES
       Before calling the functions,  the  kstat2_named(9S)  structure  should
       have   its   type   set   appropriately   to   one  of  the  following:
       KSTAT2_NVVT_STR, KSTAT2_NVVT_STRS, KSTAT2_NVVT_INTS.



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