MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


Kernel Functions for Drivers                     kstatdelete(9F)



NAME
     kstatdelete - remove a kstat from the system

SYNOPSIS
     #include 
     #include 



     void kstatdelete(kstatt *ksp);


INTERFACE LEVEL
     Solaris DI specific (Solaris DI)

PARAMETERS
     ksp     Pointer to a currently  installed  kstat(9S)  struc-
             ture.


DESCRIPTION
     kstatdelete() removes ksp from the kstat  chain  and  frees
     all associated system resources.

RETURN VALUES
     None.

CONTEXT
     kstatdelete() can be called from any context.

SEE ALSO
     kstatcreate(9F),  kstatinstall(9F),  kstatnamedinit(9F),
     kstat(9S)


     Writing Device Drivers

NOTES
     When calling kstatdelete(), the driver must not be  holding
     that  kstat's  kslock.  Otherwise,  it  may deadlock with a
     kstat reader.














SunOS 5.11           Last change: 4 Apr 1994                    1



OpenSolaris man pages main menu

Contact us      |       About us      |       Term of use      |       Copyright © 2000-2010 MyWebUniversity.com ™