3(2005-06-09)
π CMCIClientFT.associators() β the manual, but make it make sense π
okay bestie, welcome to section 3 of the manual (dated 2005-06-09, yes she's vintage, she's still iconic). this is the page for CMCIClientFT.associators(), and honestly? she's giving "let me find everyone your object is connected to" energy. let's get into it π
β¨ NAME β¨
CMCIClientFT.associators() β Enumerate instances associated with an Instance
like, you have an Instance. you want to know who it's associated with. that's the whole gig. main character energy fr fr πΈ
β¨ SYNOPSIS β¨
#include <cmci.h>
CMPIEnumeration*
CMCIClientFT.associators(CMCIClient*cl,
CMPIObjectPath*op,
constchar*assocClass,
constchar*resultClass,
constchar*role,
constchar*resultRole,
CMPIFlagsflags,
char**properties,
CMPIStatus*rc);
nine arguments. NINE. she's high maintenance but she delivers π«Ά
β¨ DESCRIPTION β¨
Enumerate instances associated with the Instance defined by op reference.
that's the mission statement. now let's meet the cast π
Arguments are:
- the client object pointer
clβ your ticket into the whole thing, no cap - an ObjectPath object pointer
opwith the reference that contains namespace and classname components β this is the Instance, the one we're finding friends for assocClassβ when it's notNULL, it's an association class name, and it's used to filter the returned set of instance objects by eliminating objects that aren't associated to the source object by an instance of this class or one of its subclasses. basically: "only keep the ones linked through this kind of association or its descendants"resultClassβ when it's notNULL, it's a valid class name, used to filter the returned set of Objects by eliminating objects that aren't an Instance of this Class or one of its subclasses. i.e. "only the ones that are this class (or a subclass) may stay β"roleβ when it's notNULL, it's a valid property name, used to filter the returned set of instance objects by eliminating objects that aren't associated to the source object by an association where the source object plays the specified role, i.e. the name of the property in the association class that refers to the source object has to match the value of this parameter. so like, "the source object is playing this role in the relationship, keep only those"resultRoleβ when it's notNULL, it's a valid property name, used to filter the returned set of instance objects by eliminating objects that aren't associated to the source object by an association where the returned object plays the specified role, i.e. the name of the property in the association class that refers to the returned object has to match the value of this parameter. same idea but for the object coming back out π«flagsβ they affect the content of the returned class instance structures- a
propertiesarray β yep, exactly what it sounds like rcβ returns the operation status, and it's suppressed whenNULL(so pass it if you want the receipts)
lowkey important: theflagsargument is a bit mask that can contains the following flags βCMPI_FLAG_IncludeQualifiersandCMPI_FLAG_IncludeClassOrigin.
(if you're sitting there like "bestie why is that its own paragraph", because it's a bit mask and bit masks deserve their own moment, that's why π )
β¨ RETURN VALUE β¨
When successful, the CMCIClientFT.associators() function returns a pointer to a CMPIEnumeration object that contains the class instances found for the class that match the association criteria, and sets a successful operation status code in rc. slay, we ate π
When unsuccessful it returns a NULL pointer and sets the operation status error code and corresponding error string in rc. not slay. check rc, always check rc π
β¨ ERRORS β¨
(nothing here in the original, bestie β the section exists, the content does not. she's mysterious like that π)
β¨ EXAMPLES β¨
(also empty in the original β no examples were given, so i'm not gonna invent any. no cap, no guessing π₯)
β¨ CONFORMING TO β¨
(the original leaves this one blank too. iconic minimalism π)
β¨ SEE ALSO β¨
- Common Manageability Programming Interface (CMPI) - OpenGroup
CMCIClient(3)CMPIEnumeration(3)CMPIObjectPath(3)CMPIFlags(3)CMPIStatus(3)
go read those next, bestie, that's the syllabus πβ¨
and that's the page!! this one shipped as part of the SFCBroker Client Library (sfcc), and it's the section 3 entry dated 2005-06-09 β vintage but valid, periodt. mwah π
π¦ where this page comes from
- centos-stream 10: sblim-sfcc 2.2.8-28.el10 Β· EPL-1.0
- centos-stream 9: sblim-sfcc 2.2.8-18.el9 Β· EPL-1.0
- centos-stream 9: sblim-sfcc 2.2.8-18.el9 Β· EPL-1.0
- fedora 43: sblim-sfcc 2.2.8-29.fc43 Β· EPL-1.0
- fedora 43: sblim-sfcc 2.2.8-29.fc43 Β· EPL-1.0
- fedora 44: sblim-sfcc 2.2.8-30.fc44 Β· EPL-1.0
- fedora 44: sblim-sfcc 2.2.8-30.fc44 Β· EPL-1.0
- nixos 26.05: sblim-sfcc 2.2.8-unstable-2023-06-26
- nixpkgs unstable: sblim-sfcc 2.2.8-unstable-2023-06-26
- opensuse-leap 16.0: sblim-sfcc-devel 2.2.9~rc1-bp160.1.13 Β· EPL-1.0
- opensuse-leap 16.0: sblim-sfcc-devel 2.2.9~rc1-bp160.1.13 Β· EPL-1.0
- opensuse-leap 16.0: sblim-sfcc-devel 2.2.9~rc1-bp160.1.13 Β· EPL-1.0
- opensuse-leap 16.0: sblim-sfcc-devel 2.2.9~rc1-bp160.1.13 Β· EPL-1.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms