pool_component_info(3pool) 맨 페이지 - 윈디하나의 솔라나라

개요

섹션
맨 페이지 이름
검색(S)

pool_component_info(3pool)

po...fo(3POOL) Pool Configuration Manipulation Library Functionspo...fo(3POOL)

NAME
       pool_component_info, pool_get_owning_resource - resource pool component
       functions

SYNOPSIS
       cc [ flag... ] file... -lpool [ library... ]
       #include <pool.h>

       const char *pool_component_info(pool_conf_t *conf,
            pool_component_t *component, int flags);


       pool_resource_t *pool_get_owning_resource(pool_conf_t *conf,
            pool_component_t *component);

DESCRIPTION
       Psets  are the only type of resource supported by resource pools. Psets
       are composed of cpus, which are the only type  of  component.  Informa‐
       tional  and  ownership  properties  of cpus are made available with the
       pool_component_info()  and  pool_get_owning_resource()  functions.  The
       conf  argument  for each function refers to the target configuration to
       which the operation applies.


       The pool_component_info() function returns a string describing the cpu.
       The string is allocated with malloc(3C). The caller is responsible  for
       freeing the returned string. The flags argument is ignored.


       The pool_get_owning_resource() function returns the pset currently con‐
       taining the cpu. Every cpu is contained by a pset.

RETURN VALUES
       Upon  successful  completion,  pool_component_info()  returns a string.
       Otherwise it returns NULL and pool_error(3POOL) returns  the  pool-spe‐
       cific error value.


       Upon successful completion, pool_get_owning_resource() returns the own‐
       ing  pset. Otherwise it returns NULL and pool_error() returns the pool-
       specific error value.

ERRORS
       The pool_component_info() function will fail if:

       POE_BADPARAM        The  supplied   configuration's   status   is   not
                           POF_VALID or the flags parameter is neither 0 or 1.


       POE_INVALID_CONF    The configuration is invalid.


       POE_SYSTEM          A system error has occurred. Check the system error
                           code for more details.



       The pool_get_owning_resource() function will fail if:

       POE_BADPARAM    The supplied configuration's status is not POF_VALID.


ATTRIBUTES
       See attributes(7) for descriptions of the following attributes:

       tab()  box; cw(2.75i) |cw(2.75i) lw(2.75i) |lw(2.75i) ATTRIBUTE TYPEAT‐
       TRIBUTE VALUE _ CSIEnabled _ Interface StabilityUncommitted _ MT-Level‐
       Safe


SEE ALSO
       libpool(3LIB), pool_error(3POOL), attributes(7)

Oracle Solaris 11.4               27 Nov 2017                   po...fo(3POOL)
맨 페이지 내용의 저작권은 맨 페이지 작성자에게 있습니다.
RSS ATOM XHTML 5 CSS3