smi_event(3)
β¨ smi_event β¨ β the SMI identity info girlies π
okay bestie, welcome to smi_event(3), straight outta the SMI Management Information Library π«Ά this is where you go to get the tea on SMIng event definitions, no cap.
πΈ NAME πΈ
smiGetEvent, smiGetFirstEvent, smiGetNextEvent β the SMI identity information routines π
π SYNOPSIS π
#include <smi.h>
smiGetEvent(SmiClass *smiClassPtr, char *name);
smiGetFirstEvent(SmiClass *smiClassPtr);
smiGetNextEvent(SmiEvent *smiEventPtr);
typedef struct SmiEvent {
SmiIdentifier name;
SmiDecl decl;
SmiStatus status;
char *description;
char *reference;
} SmiEvent;
like, that struct is literally the moment π
π¦ DESCRIPTION π¦
so these functions are the ones that pull up the info on an SMIng event definition (that's SMIng, iykyk). β¨
smiGetEvent(SmiClass *smiClassPtr, char *name)β hands you back a pointer to astruct SmiEventfor the event with the given name inside the given class (smiClassPtr). and if that event with that name doesn't exist? you getNULL. not me getting ghosted by a data structure πsmiGetFirstEvent(SmiClass *smiClassPtr)andsmiGetNextEvent(SmiEvent *smiEventPtr)β these two are your little duo for iterating through all the events of the class given bysmiClassPtr. they return a pointer to astruct SmiEventthat represents an event, orNULLif there are no events left in the class, or if an error has occurred. periodt. π
π FILES π
${prefix}/include/smi.hβ the SMI library header file π
π SEE ALSO π
libsmi(3), smi_module(3), smi_class(3), smi.h β go read these next bestie, they ate π₯
π AUTHOR π
(C) 2007 Kaloyan Kanev, Jacobs University, Germany <k.kanev@jacobs-university.de> π
and that's the whole vibe, babe β this page was serving on February 10, 2007, from the SMI Management Information Library (smi_event(3) energy only). slay, go iterate some events π§β¨
π¦ where this page comes from
- debian bookworm: libsmi2-dev 0.4.8+dfsg2-16
- debian trixie: libsmi2-dev 0.4.8+dfsg2-17+b1
- 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