smi_class(3)
π smi_class(3) π
okay bestie, welcome to smi_class(3) from the SMI Management Information Library. this page is literally all about SMIng class info routines β getting class deets, walking class lists, finding parents, and checking if a class is scalar. no cap, it's giving very useful library tea π«Άβ¨
β¨ NAME β¨
SmiClass information routines, periodt: smiGetClass, smiGetFirstClass, smiGetNextClass, smiGetClassModule, smiGetParentClass, and smiIsClassScalar β SMI class information routines.
πΈ SYNOPSIS πΈ
#include <smi.h>
SmiClass *smiGetClass(SmiModule *smiModulePtr, char *name);
SmiClass *smiGetFirstClass(SmiModule *smiModulePtr);
SmiClass *smiGetNextClass(SmiClass *smiClassPtr);
SmiClass *smiGetParentClass(SmiClass *smiClassPtr);
SmiModule *smiGetClassModule(SmiClass *smiClassPtr);
int smiIsClassScalar(SmiClass *smiClassPtr);
typedef struct SmiClass {
SmiIdentifier name;
SmiDecl decl;
SmiStatus status;
char *description;
char *reference;
} SmiClass;
π DESCRIPTION π
These functions retrieve information on a SMIng class definition (SMIng). like, that's the whole vibe.
smiGetClass(SmiModule *smiModulePtr,char *name)β returns a pointer tostruct SmiClassthat represents the class with the givennamein the given module (smiModulePtr), orNULLif the class with the given name does not exist.smiGetFirstClass(SmiModule *smiModulePtr)andsmiGetNextClass(SmiClass *smiClassPtr)β used to iterate through the classes of the module given bysmiModulePtr. They return a pointer tostruct SmiClassthat represents a class orNULLif there are no classes left in the module, or error has occurred.smiGetClassModule(SmiClass *smiClassPtr)β returns a pointer tostruct SmiModule, of the module containing the given class.smiGetParentClass(SmiClass *smiClassPtr)β returns a pointer tostruct SmiClasspointing to the parent of the givensmiClassPtr, orNULLif the class is not derived.smiIsClassScalar(SmiClass *smiClassPtr)β returnsint1if the class is scalar (its unique statement contains an empty list) or0otherwise. This method can be used in conjunction withsmiGetFirstUniqueAttribute()to determine whether the class is meant to be instantiated separately (has unique statement with nonempty list), or if it is meant to be used as part of another class (has no unique statement).
not me being obsessed with how clean this API is. it's giving main character energy, fr fr ππ
π FILES π
${prefix}/include/smi.hβ SMI library header file
π SEE ALSO π
libsmi(3)smi_module(3)smi.h
π AUTHOR π
- (C) 2007 Kaloyan Kanev, Jacobs University, Germany
<k.kanev@jacobs-university.de>
okay bestie, that's the whole page. this was smi_class(3) from the SMI Management Information Library, dated February 10, 2007. stay iconic, read your man pages, and don't forget to close your file descriptors π
β¨π¦
π¦ where this page comes from
- alpine 3.24: libsmi-doc 0.5.0-r5 Β· BSD-3-Clause AND MIT
- debian bookworm: libsmi2-dev 0.4.8+dfsg2-16
- debian trixie: libsmi2-dev 0.4.8+dfsg2-17+b1
- nixos 26.05: libsmi 0.5.0
- nixpkgs unstable: libsmi 0.5.0
- ubuntu jammy: libsmi2-dev 0.4.8+dfsg2-16
- ubuntu noble: libsmi2-dev 0.4.8+dfsg2-16.1build1
- ubuntu questing: libsmi2-dev 0.4.8+dfsg2-17
- ubuntu resolute: libsmi2-dev 0.4.8+dfsg2-18
- ubuntu stonking: libsmi2-dev 0.4.8+dfsg2-18
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms