Print this page
12202 noise in example code in some section 3pool man pages

*** 1,16 **** '\" te .\" Copyright (c) 2005, Sun Microsystems, Inc. All Rights Reserved. .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License. .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License. .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner] ! .TH POOL_GET_POOL 3POOL "Jul 18, 2005" .SH NAME pool_get_pool, pool_get_resource, pool_query_components, pool_query_pools, pool_query_resources \- retrieve resource pool configuration elements .SH SYNOPSIS - .LP .nf cc [ \fIflag\fR]\&.\|.\|. \fIfile\fR\&.\|.\|. \fB-lpool\fR [ \fIlibrary\fR\&.\|.\|. ] #include <pool.h> \fBpool_t *\fR\fBpool_get_pool\fR(\fBpool_conf_t *\fR\fIconf\fR, \fBconst char *\fR\fIname\fR); --- 1,15 ---- '\" te .\" Copyright (c) 2005, Sun Microsystems, Inc. All Rights Reserved. .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License. .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License. .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner] ! .TH POOL_GET_POOL 3POOL "January 18, 2020" .SH NAME pool_get_pool, pool_get_resource, pool_query_components, pool_query_pools, pool_query_resources \- retrieve resource pool configuration elements .SH SYNOPSIS .nf cc [ \fIflag\fR]\&.\|.\|. \fIfile\fR\&.\|.\|. \fB-lpool\fR [ \fIlibrary\fR\&.\|.\|. ] #include <pool.h> \fBpool_t *\fR\fBpool_get_pool\fR(\fBpool_conf_t *\fR\fIconf\fR, \fBconst char *\fR\fIname\fR);
*** 39,50 **** \fBpool_component_t **\fR\fBpool_query_resources\fR(\fBpool_conf_t *\fR\fIconf\fR, \fBuint_t *\fR\fInelem\fR, \fBpool_value_t **\fR\fIprops\fR); .fi .SH DESCRIPTION - .sp - .LP These functions provide a means for querying the contents of the specified configuration. The \fIconf\fR argument for each function refers to the target configuration to which the operation applies. .sp .LP --- 38,47 ----
*** 71,82 **** .LP The \fBpool_query_resources()\fR function similarly returns the list of resources that match the given list of properties. The return value must be freed by the caller. .SH RETURN VALUES - .sp - .LP The \fBpool_get_pool()\fR and \fBpool_get_resource()\fR functions return the matching pool and resource, respectively. Otherwise, they return \fINULL\fR and \fBpool_error\fR(3POOL) returns the pool-specific error value. .sp .LP --- 68,77 ----
*** 84,97 **** \fBpool_query_resources()\fR functions return a null-terminated array of components, pools, and resources, respectively. If the query was unsuccessful or there were no matches, \fINULL\fR is returned and \fBpool_error()\fR returns the pool-specific error value. .SH ERRORS .sp - .LP - The \fBpool_get_pool()\fR will fail if: - .sp .ne 2 .na \fB\fBPOE_BADPARAM\fR\fR .ad .RS 16n --- 79,90 ---- \fBpool_query_resources()\fR functions return a null-terminated array of components, pools, and resources, respectively. If the query was unsuccessful or there were no matches, \fINULL\fR is returned and \fBpool_error()\fR returns the pool-specific error value. .SH ERRORS + The \fBpool_get_pool()\fR function will fail if: .sp .ne 2 .na \fB\fBPOE_BADPARAM\fR\fR .ad .RS 16n
*** 98,108 **** The supplied configuration's status is not \fBPOF_VALID\fR. .RE .sp .LP ! The \fBpool_get_resource()\fR will fail if: .sp .ne 2 .na \fB\fBPOE_BADPARAM\fR\fR .ad --- 91,101 ---- The supplied configuration's status is not \fBPOF_VALID\fR. .RE .sp .LP ! The \fBpool_get_resource()\fR function will fail if: .sp .ne 2 .na \fB\fBPOE_BADPARAM\fR\fR .ad
*** 121,131 **** .RE .sp .LP The \fBpool_query_components()\fR, \fBpool_query_pools()\fR, and ! \fBpool_query_resources()\fR will fail if: .sp .ne 2 .na \fB\fBPOE_BADPARAM\fR\fR .ad --- 114,124 ---- .RE .sp .LP The \fBpool_query_components()\fR, \fBpool_query_pools()\fR, and ! \fBpool_query_resources()\fR functions will fail if: .sp .ne 2 .na \fB\fBPOE_BADPARAM\fR\fR .ad
*** 152,162 **** There is not enough memory available to allocate working buffers. Check \fBerrno\fR for the specific system error code. .RE .SH EXAMPLES - .LP \fBExample 1 \fRRetrieve the pool named "foo" from a given configuration. .sp .in +2 .nf #include <pool.h> --- 145,154 ----
*** 169,187 **** \&... if ((pool = pool_get_pool(conf, "foo")) == NULL) { (void) fprintf(stderr, "Cannot retrieve pool named ! 'foo'\\B{}n"); ... } .fi .in -2 .SH ATTRIBUTES - .sp - .LP See \fBattributes\fR(5) for descriptions of the following attributes: .sp .sp .TS --- 161,177 ---- \&... if ((pool = pool_get_pool(conf, "foo")) == NULL) { (void) fprintf(stderr, "Cannot retrieve pool named ! 'foo'\\n"); ... } .fi .in -2 .SH ATTRIBUTES See \fBattributes\fR(5) for descriptions of the following attributes: .sp .sp .TS
*** 196,203 **** _ MT-Level Safe .TE .SH SEE ALSO - .sp - .LP \fBlibpool\fR(3LIB), \fBpool_error\fR(3POOL), \fBattributes\fR(5) --- 186,191 ----