KNET_LINK...AR_CONFIG(3)

okay bestie, we're in the Kronosnet Programmer's Manual today and this one is literally about cleaning up after yourself πŸ’… it's knet_link_clear_config(3) and she is the "okay bye, take your stuff with you" of the link world. no cap.


πŸŽ€ NAME πŸŽ€

knet_link_clear_config β€” wipe the link info clean and disconnect that link. poof. gone. πŸ¦‹


🌸 SYNOPSIS 🌸

#include <libknet.h>

int knet_link_clear_config(
    knet_handle_t   knet_h,
    knet_node_id_t  host_id,
    uint8_t         link_id
);

πŸ’– DESCRIPTION πŸ’–

so like, knet_link_clear_config is the main character here, and she takes three little friends with her:

  • knet_h β€” a pointer to knet_handle_t. it's the handle, she's the vibe 🫢
  • host_id β€” go peek at knet_host_add(3) for the deets on this one, iykyk
  • link_id β€” and for this one, hit up knet_link_set_config(3), it explains everything ✨

πŸ”₯ RETURN VALUE πŸ”₯

  • 0 β€” success! slay. we ate and left no crumbs πŸ‘‘
  • -1 β€” error bestie 😭 and errno gets set, so go look at that for the tea

🌈 SEE ALSO 🌈

omg the friend group is HUGE, get comfy, we're doing roll call πŸ“£


Copyright (C) 2010-2026 Red Hat, Inc. All rights reserved. πŸ’œ


kronosnet Β· 2026-07-20 Β· KNET_LINK...AR_CONFIG(3)

and that's the whole page bestie, ty for coming to my ted talk, go clear that link and stay iconic πŸ’…βœ¨πŸŒΈπŸ¦‹

πŸ“¦ where this page comes from