Hallo, dies ist ein Test.
PWD: /www/data-lst1/unixsoft/unixsoft/kaempfer/.public_html
Running in File Mode
Relative path: ./../../.././../../../usr/man/man9f/kstat2_runq_enter.9f
Real path: /usr/share/man/man9f/kstat2_runq_enter.9f
Zurück
'\" te .\" Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. .TH kstat2_runq_enter 9F "8 Dec 2015" "Oracle Solaris 11.4" "Kernel Functions" .SH NAME kstat2_runq_enter, kstat2_waitq_enter, kstat2_waitq_exit, kstat2_runq_exit, kstat2_waitq_to_runq, kstat2_runq_back_to_waitq \- update I/O kstat statistics .SH SYNOPSIS .LP .nf #include <sys/types.h> #include <sys/kstat2.h> void kstat2_waitq_enter(kstat2_io_t *kiop); void kstat2_waitq_exit(kstat2_io_t *kiop); void kstat2_runq_enter(kstat2_io_t *kiop); void kstat2_runq_exit(kstat2_io_t *kiop); void kstat2_waitq_to_runq(kstat2_io_t *kiop); void kstat2_runq_back_to_waitq(kstat2_io_t *kiop); .fi .SH INTERFACE LEVEL .sp .LP Solaris DDI specific (Solaris DDI) .SH PARAMETERS .sp .ne 2 .mk .na \fB\fIkiop\fR\fR .ad .RS 8n .rt Pointer to a \fBkstat2_io\fR(9S) structure. .RE .SH DESCRIPTION .sp .LP A large number of I/O subsystems have at least two basic \fBlists\fR (or queues) of transactions they manage: one for transactions that are accepted for processing but the processing is yet to begin, and one for transactions that are actively being processed but not completed. For this reason, two cumulative time statistics are kept: wait (pre-service) time, and run (service) time. .sp .LP The \fBkstat2\fR queue family of functions manage the time based on the transitions between the driver wait queue and run queue. .sp .ne 2 .mk .na \fB\fBkstat2_waitq_enter()\fR\fR .ad .RS 29n .rt The \fBkstat2_waitq_enter()\fR function is called when a request arrives and is placed into a pre-service state (such as just prior to calling \fBdisksort\fR(9F)). .RE .sp .ne 2 .mk .na \fB\fBkstat2_waitq_exit()\fR\fR .ad .RS 29n .rt The \fBkstat2_waitq_exit()\fR function is used when a request is removed from its pre-service state. (such as just prior to calling the driver's start routine). .RE .sp .ne 2 .mk .na \fB\fBkstat2_runq_enter()\fR\fR .ad .RS 29n .rt The \fBkstat2_runq_enter()\fR function is also called when a request is placed in its service state (just prior to calling the driver's start routine, but after \fBkstat2_waitq_exit()\fR function). .RE .sp .ne 2 .mk .na \fB\fBkstat2_runq_exit()\fR\fR .ad .RS 29n .rt The \fBkstat2_runq_exit()\fR function is used when a request is removed from its service state (just prior to calling \fBbiodone\fR(9F)). .RE .sp .ne 2 .mk .na \fB\fBkstat2_waitq_to_runq()\fR\fR .ad .RS 29n .rt The \fBkstat2_waitq_to_runq()\fR function is used to transition a request from the wait queue to the run queue. This is useful wherever the driver would have normally done a \fBkstat2_waitq_exit()\fR followed by a call to \fBkstat2_runq_enter()\fR. .RE .sp .ne 2 .mk .na \fB\fBkstat2_runq_back_to_waitq()\fR\fR .ad .RS 29n .rt The \fBkstat2_runq_back_to_waitq()\fR function is used to transition a request from the run queue back to the wait queue. This may be necessary in some cases (write throttling is an example). .RE .SH RETURN VALUES .sp .LP None .SH CONTEXT .sp .LP These functions can be called from user or kernel context. .SH SEE ALSO .sp .LP \fBbiodone\fR(9F), \fBdisksort\fR(9F), \fBkstat2_create\fR(9F), \fBkstat2_hold_bykid\fR(9F), \fBkstat2_nv_init\fR(9F), \fBkstat2\fR(9S), \fBkstat2_io\fR(9S) .SH WARNINGS .sp .LP These transitions must be protected by holding the kstat's \fBks2_lock\fR, and must be completely accurate (all transitions are recorded). Forgetting a transition might, for example, make an idle disk appear 100% busy.