KNET_HOST_GET_STATUS(3)

okay bestie, welcome to KNET_HOST_GET_STATUS(3) πŸ’– straight out of the Kronosnet Programmer's Manual. it's giving "how's that host doing tho" energy and honestly? we love a little status check 🫢


🌸 NAME 🌸

knet_host_get_status β€” get the status of a host ✨ that's it, that's the whole job.


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <libknet.h>

int knet_host_get_status(
    knet_handle_t              knet_h,
    knet_node_id_t             host_id,
    struct knet_host_status   *status
);

yes bestie, it's one function call and it hands you back a lil struct. chef's kiss πŸ’…


πŸŽ€ DESCRIPTION πŸŽ€

okay so. knet_host_get_status β€” that's our main character here πŸ‘‘

  • knet_h β€” a pointer to a knet_handle_t. the handle. the vibe. the whole operation.
  • host_id β€” go look at knet_host_add(3) for this one, that's where the lore lives πŸ“–
  • status β€” a pointer to a knet_host_status struct. this is where the tea gets poured β˜• (details below, keep scrolling, it's worth it)

🌈 STRUCTURES 🌈

so this is the status of a knet host, and it's what gets returned from knet_host_get_status() β€” struct reveal time ✨

struct knet_host_status {
    uint8_t  reachable;  /* Whether the host is currently reachable */
    /*
     * Whether the host is a remote node (not currently implemented)
     */
    uint8_t  remote;
    /*
     * Whether the host is external (not currently implemented)
     */
    uint8_t  external;
};

let me break the vibes down for you bestie:

  • reachable β€” whether the host is currently reachable. this one actually works. slay.
  • remote β€” whether the host is a remote node. not currently implemented πŸ’€ so like, don't get your hopes up, she's just sitting there.
  • external β€” whether the host is external. also not currently implemented πŸ™ˆ same deal. placeholder core.

⭐ RETURN VALUE ⭐

okay so, word for word, the page says this:

knet_handle_pmtud_get returns 0 on success, -1 on error and errno is set.

and yes, bestie, the page literally writes knet_handle_pmtud_get right there β€” that's what it says, i'm just the messenger 🫠

but the actual tea is: 0 = we ate, -1 = we did not eat, and errno gets set so you can find out why. periodt. πŸ’…


πŸ‘‘ SEE ALSO πŸ‘‘

so many icons, honestly, the whole family tree 🌳:


Copyright (C) 2010-2026 Red Hat, Inc. All rights reserved.


and that's the whole page, bestie πŸŽ€ this one's from kronosnet, dated 2026-07-20, and it's filed under KNET_HOST_GET_STATUS(3). go check on your hosts, they deserve it πŸ¦‹βœ¨πŸ’…

πŸ“¦ where this page comes from