smi_node(3)

πŸ“¦
version 0.5.0 Β· 2 versions
, in alpine 3.24, nixos 26.05, nixpkgs unstable

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:

🌟 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