QB_LIST_SPLICE_TAIL(3)

πŸ’– QB_LIST_SPLICE_TAIL πŸ’–

okay bestie, so this one lives in libqb's programmer manual, section 3 (that's the library-functions girlies, iykyk). It's qb_list_splice_tail and she is literally the "join two lists, each list being a queue" moment. Slay.


✨ NAME ✨

qb_list_splice_tail β€” join two lists, each list being a queue. πŸŽ€


🌸 SYNOPSIS 🌸

#include <qb/qblist.h>

static void qb_list_splice_tail(
    struct qb_list_head   *list,  /* the new list to add. */
    struct qb_list_head   *head   /* the place to add it in the first list. */
);

not me including <qb/qblist.h> like the iconic header it is πŸ’… and yes it's static void, exactly like that, don't come for me.


πŸ¦‹ PARAMS πŸ¦‹

  • list β€” the new list to add. that's the incoming bestie, the one getting tacked on. 🫢
  • head β€” the place to add it in the first list. like, the spot where the new list gets attached. πŸ“

πŸ“ DESCRIPTION πŸ“

so... the DESCRIPTION section is genuinely, canonically empty in the original. πŸ’€ no cap. The tea is all in PARAMS and STRUCTURES, and I refuse to make up extra lore that isn't in the source. periodt.


πŸ‘‘ STRUCTURES πŸ‘‘

here's the struct that's doing all the heavy lifting:

struct qb_list_head {
    struct   next;
    struct   prev;
};

she's giving doubly-linked-list main character energy, fr fr. next and prev, keeping everybody connected. ✨


🌈 SEE ALSO 🌈

the whole squad, linked up:


Copyright (C) 2010-2020 Red Hat, Inc.


okay that's the whole page, bestie β€” every flag, param, struct field and reference, untouched and thriving. 🧚

this lil cutie came from the libqb crew and the page is dated 2025-09-16, so go forth and splice those tails with confidence. mwah πŸ’…πŸ’–πŸ¦‹

πŸ“¦ where this page comes from