Hallo, dies ist ein Test.
PWD: /www/data-lst1/unixsoft/unixsoft/kaempfer/.public_html
Running in File Mode
Relative path: ./../../../../../../usr/man/man9f/kstat2_install.9f
Real path: /usr/share/man/man9f/kstat2_install.9f
Zurück
'\" te .\" Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. .TH kstat2_install 9F "15 Jul 2015" "Oracle Solaris 11.4" "Kernel Functions" .SH NAME kstat2_install \- add a fully initialized kstat to the system .SH SYNOPSIS .LP .nf #include <sys/types.h> #include <sys/kstat2.h> void kstat2_install(kstat2_t *ksp); .fi .SH INTERFACE LEVEL .sp .LP Solaris DDI specific (Solaris DDI) .SH PARAMETERS .sp .ne 2 .mk .na \fB\fIksp\fR\fR .ad .RS 7n .rt Pointer to a fully initialized kstat2(9S) structure. .RE .SH DESCRIPTION .sp .LP \fBkstat2_install()\fR function is used in conjunction with \fBkstat2_create()\fR function to allocate and initialize a \fBkstat2\fR structure. .sp .LP After a successful call to \fBkstat2_create()\fR function, the driver must perform any necessary initialization of the data section. The provider might also set the \fBks2_update\fR, \fBks2_private\fR, and \fBks2_lock\fR fields if necessary. These fields should be set before \fBkstat2_install()\fR function is called. .sp .LP Once the \fBkstat\fR is completely initialized, \fBkstat2_install\fR marks it as valid and you may start to access its data. .SH RETURN VALUES .sp .LP None .SH CONTEXT .sp .LP The \fBkstat2_install()\fR function can be called from user or kernel context. .SH EXAMPLES .LP \fBExample 1\fR Allocating and Initializing a \fBkstat\fR Structure .sp .LP The method for allocating and initializing a \fBkstat\fR structure is generally as follows: .sp .in +2 .nf kstat2_t *ksp; ksp = kstat2_create(pseg, npseg, zoneid, &data, ndata, flags, md); if (ksp != NULL) { /* ... provider initialization, if necessary */ kstat2_install(ksp); } .fi .in -2 .sp .SH SEE ALSO .sp .LP \fBkstat2_create\fR(9F), \fBkstat2_create_histogram\fR(9F), \fBkstat2_create_with_template\fR(9F), \fBkstat2_delete\fR(9F), \fBkstat2_lookup_template\fR(9F), \fBkstat2_nv_init\fR(9F), \fBkstat2\fR(9S), \fBkstat2_named\fR(9S)