smi_node(3)
okay so bestie, you're looking at smi_node(3) from the SMI Management Information Library π
and it is literally the YANG node info page. No cap. Let's go. π¦
π NAME π
the whole squad of functions on this page is: yangGetModule, yangGetFirstModule, yangGetNextModule, yangGetFirstChildNode, yangGetNextChildNode β and they're the YANG node information routines. β¨
β¨ SYNOPSIS β¨
first, grab the header and the exact shapes:
#include <yang.h>
YangNode *yangGetFirstChildNode(YangNode *yangNodePtr);
YangNode *yangGetNextChildNode(YangNode *yangNodePtr);
typedef struct YangNode {
YangString value;
YangString extra;
YangDecl nodekind;
YangStatus status;
YangConfig config;
SmiAccess access;
YangString description;
YangString reference;
} YangNode;
that's the YangNode struct, and yes those are all the fields β don't skip any. π
π DESCRIPTION π
These functions retrieve information on any YANG node definition in the YAND node tree. (Yes, YAND, exactly like that. π)
The yangGetFirstChildNode() and yangGetNextChildNode() functions are your iteration besties: you use them to iteratively retrieve struct YangNodes that represent the immediate child nodes of the node specified by yangNodePtr passed to the yangGetFirstChildNode() or yangGetNextChildNode() call. Slay. π₯
π FILES π
${prefix}/include/yang.hβ the YANG library header file. π
π SEE ALSO π
go look at these too, iykyk:
libsmi(3)smi_config(3)yang.h
π AUTHOR π
shoutout and big ups to (C) 2010 Juergen Schoenwaelder, Jacobs University Bremen, Germany <j.schoenwaelder@jacobs-university.de>. π
xoxo from the source/version JACOBS π, dated June 25, 2010 β smi_node(3) out. π«Ά
π¦ where this page comes from
- alpine 3.24: libsmi-doc 0.5.0-r5 Β· BSD-3-Clause AND MIT
- nixos 26.05: libsmi 0.5.0
- nixpkgs unstable: libsmi 0.5.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms