svcadm(8)을 검색하려면 섹션에서 8 을 선택하고, 맨 페이지 이름에 svcadm을 입력하고 검색을 누른다.
kstat2_hold_bykid(9f)
kstat2_hold_bykid(9F) Kernel Functions kstat2_hold_bykid(9F)
NAME
kstat2_hold_bykid, kstat2_rele - hold and release a lock on a v2 kstat
SYNOPSIS
#include <sys/types.h>
#include <sys/kstat2.h>
kstat2_t *kstat2_hold_bykid(kid_t ks_kid);
void kstat2_rele(kstat2_t *ksp);
INTERFACE LEVEL
Solaris DDI specific (Solaris DDI)
PARAMETERS
kstat2_hold_bykid() function
ks_kid ID of a previously created kstat.
kstat2_rele() function
ksp v2 kstat handle previously obtained one of the kstat2_hold*()
calls.
DESCRIPTION
Before the values in a kstat are modified, the kstat must be locked.
These functions provide the operations to search for and lock a kstat
and to release that lock once changes have been made.
kstat2_hold_bykid() locates a kstat using its unique ID, locks it and
returns a pointer to the kstat to the caller.
kstat2_rele() releases the lock on the given kstat.
RETURN VALUES
The kstat2_hold_bykid() function returns a pointer to the locked kstat
or NULL if a kstat is not found.
CONTEXT
These functions can be called from any context.
SEE ALSO
kstat2_create(9F), kstat2_install(9F), kstat2(9S)
NOTES
It is recommended that locks be held for the absolute minimum time nec‐
essary to prevent kstat readers from blocking for a long time.
Oracle Solaris 11.4 15 Jul 2015 kstat2_hold_bykid(9F)