NODEUPDOWN_GE..._NODES_STRING(3)
๐ NODEUPDOWN_GET_UP_NODES_STRING ๐
okay so bestie, welcome to the nodeupdown girlies' corner of LIBNODEUPDOWN ๐
this is the man page for nodeupdown_get_up_nodes_string and its ride-or-die twin nodeupdown_get_down_nodes_string, and no cap, they're about to hand you a whole ranged string of nodes like it's nothing. periodt.
โจ NAME โจ
nodeupdown_get_up_nodes_string, nodeupdown_get_down_nodes_string โ get up or down nodes ๐ฆ
๐ธ 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 fetches a ranged string of nodes that are up and drops it right into the buffer that buf is pointing at. iconic behaviour honestly.
and buflen? that's you telling it how long your buffer is. pls don't lie to it, it will not recover. ๐
then nodeupdown_get_down_nodes_string() is literally the exact same function, same energy, same everything โ except it retrieves a ranged string of down nodes. that's it. that's the whole difference. slay.
๐ RETURN VALUES ๐
- On success? it returns
0โจ we love a clean win. - On error? it returns
-1๐ญ and an error code gets handed back inhandle.
you can grab that error code with nodeupdown_errnum(3), and get a whole description of it with nodeupdown_strerror(3). the error codes themselves are chillin' over in nodeupdown.h.
๐ ERRORS ๐
like, here's the whole drama list, bestie:
NODEUPDOWN_ERR_NULLHANDLEโ thehandleparameter isNULL. literally nothing there. the nodeupdown handle has to be created withnodeupdown_handle_create(3)first, okay? ๐ซถNODEUPDOWN_ERR_NOTLOADEDโnodeupdown_load_data(3)has not been called and no data has been retrieved. it's giving empty. it's giving nothing to work with.NODEUPDOWN_ERR_PARAMETERSโ an incorrect parameter has been passed in. ๐ something you gave it was just... not it.NODEUPDOWN_ERR_OVERFLOWโ the buffer pointed to bybufis not large enough to store the ranged string of nodes. it simply does not fit and it is NOT gonna pretend otherwise.NODEUPDOWN_ERR_OUTMEMโmalloc(3)has failed internally. memory said no. ๐NODEUPDOWN_ERR_CLUSTERLIST_MODULEโ internal error with the clusterlist module. not your fault, not our fault, it's just an internal moment.NODEUPDOWN_ERR_HOSTLISTโ Hostlist API has failed internally. same vibe, different module.NODEUPDOWN_ERR_MAGICโhandlehas an incorrect magic number ๐ฎhandledoes not point to a nodeupdown handle, orhandlehas been destroyed bynodeupdown_handle_destroy(3). so either it was never a real handle or you already killed it. either way, it's gone, girl.
๐ 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)
ngl if you're still confused, go read the _list versions instead โ sometimes you just want the list, not the ranged string. iykyk ๐
k bye bestie, this one came from LLNL, dated August 2003 โ yeah she's vintage but she still ate ๐ ๐ 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