NODEUPDOWN_GE..._NODES_STRING(3)
๐ NODEUPDOWN_GE..._NODES_STRING(3) ๐
okay bestie, so this is a libnodeupdown man page โ section 3, the library-calls girly. sit down, grab a strawberry, we're learning about grabbing node lists ๐
โจ NAME โจ
nodeupdown_get_up_nodes_string, nodeupdown_get_down_nodes_string, โ get up or down nodes
like. the whole vibe is in the name fr fr. one of them gives you the up girlies, the other gives you the down ones ๐
๐ธ SYNOPSIS ๐ธ
#include <nodeupdown.h>
int nodeupdown_get_up_nodes_string(nodeupdown_t handle, char *buf, int
buflen);
int nodeupdown_get_down_nodes_string(nodeupdown_t handle, char *buf, int
buflen);
๐ฆ DESCRIPTION ๐ฆ
so nodeupdown_get_up_nodes_string() goes and gets you a ranged string of nodes that are up and gently places it into the buffer that buf is pointing at. iconic behaviour honestly. and buflen? that's you telling it how long the buffer is โ you have to tell it, it's not gonna guess ๐ฅ
and then nodeupdown_get_down_nodes_string() is literally the exact same thing, no cap, except it retrieves a ranged string of down nodes instead of up ones. same energy, different mood ๐
๐ RETURN VALUES ๐
on success, 0 is returned โจ slay.
on error, -1 is returned, and an error code is returned in handle. you can go get that error code with nodeupdown_errnum(3), and if you want an actual description of what that error code means (like, in words, bestie), that's nodeupdown_strerror(3). the error codes themselves are defined in nodeupdown.h ๐
๐ ERRORS ๐
NODEUPDOWN_ERR_NULLHANDLEโ thehandleparameter isNULL๐ญ the nodeupdown handle has to be created withnodeupdown_handle_create(3)first, you can't just show up with nothing.NODEUPDOWN_ERR_NOTLOADEDโnodeupdown_load_data(3)has not been called and no data has been retrieved. like girl you didn't load anything, what did you expect ๐NODEUPDOWN_ERR_PARAMETERSโ an incorrect parameter has been passed in. check ur args bestie.NODEUPDOWN_ERR_OVERFLOWโ the buffer pointed to bybufis not large enough to store the ranged string of nodes. it's giving not enough room ๐ make the buffer bigger.NODEUPDOWN_ERR_OUTMEMโmalloc(3)has failed internally. the memory said no ๐ซถNODEUPDOWN_ERR_CLUSTERLIST_MODULEโ internal error with the clusterlist module.NODEUPDOWN_ERR_HOSTLISTโ hostlist API has failed internally.NODEUPDOWN_ERR_MAGICโhandlehas an incorrect magic number โจ๐ฎhandledoes not point to a nodeupdown handle, orhandlehas been destroyed bynodeupdown_handle_destroy(3). yes it's literally called a magic number, we love a mystical moment.
๐ FILES ๐
/usr/include/nodeupdown.h
โญ SEE ALSO โญ
libnodeupdown(3), nodeupdown_handle_create(3), nodeupdown_load_data(3), nodeupdown_get_up_nodes_list (3), nodeupdown_get_down_nodes_list (3), nodeupdown_errnum(3), nodeupdown_strerror(3)
lowkey important: if you're holding abufthat's too small you're gettingNODEUPDOWN_ERR_OVERFLOW, so size it right the first time. no cap ๐
and that's the whole page, bestie ๐ซถ brought to you by LLNL, dating all the way back to August 2003 โ yes she's vintage, she's an icon, she's still serving. mwah ๐ โจ
๐ฆ where this page comes from
- epel 9: libnodeupdown-devel 1.14-41.el9 ยท GPLv2+
- fedora 43: libnodeupdown-devel 1.14-50.fc43 ยท GPL-2.0-or-later
- fedora 43: libnodeupdown-devel 1.14-50.fc43 ยท GPL-2.0-or-later
- fedora 44: libnodeupdown-devel 1.14-51.fc44 ยท GPL-2.0-or-later
- fedora 44: libnodeupdown-devel 1.14-51.fc44 ยท GPL-2.0-or-later
- Copyright (C) 2007-2011 Lawrence Livermore National Security, LLC
- Copyright (C) 2003-2007 The Regents of the University of California
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms