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

개요

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

kstat2_zone_add(9f)

kstat2_zone_add(9F)            Kernel Functions            kstat2_zone_add(9F)



NAME
       kstat2_zone_add,  kstat2_zone_remove  -  add  or remove visibility of a
       kstat in a zone

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

       void kstat2_zone_add(kstat2_t *ksp, zoneid_t zone);
       void kstat2_zone_remove(kstat2_t *ksp, zoneid_t zone);

INTERFACE LEVEL
       Solaris DDI specific (Solaris DDI)

PARAMETERS
       ksp     Pointer to a currently installed kstat2(9S) structure.


       zone    ID of the zone in which the kstat is to be made visible or hid‐
               den.



DESCRIPTION
       The  kstat2_zone_add() function marks the specified kstat as visible in
       the given zone. Subsequent readings of kstats in this zone will include
       the kstat.


       The  kstat2_zone_remove()  function  prevents  the specified kstat from
       being visible or read in the given zone.


       The macros: ALL_ZONES and GLOBAL_ZONEID, can be used as the zone param‐
       eter  to  both functions. ALL_ZONES indicates that the kstat is visible
       in all global and non-global zones. GLOBAL_ZONEID  indicates  that  the
       kstat can only be read in the global zone.


       A  kstat  is made visible in both the global zone and a non-global zone
       at the creation time, by passing the  KSTAT2_FLAG_GZ_VIS  flag  in  the
       ks_flags  argument  and the non-global zone id in the ks_zone argument.
       For more information, see the kstat2_create(9F) man page.

RETURN VALUES
       None

CONTEXT
       The kstat zone functions can be called from any context.

SEE ALSO
       kstat2_create(9F), kstat2_install(9F), kstat2(9S)



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