QB_LIST_ADD_TAIL(3)

πŸ’– qb_list_add_tail(3) β€” libqb Programmer's Manual πŸ’–

okay bestie, so this one is literally called qb_list_add_tail and it does exactly what it says on the tin: it adds stuff to the list, but at the end of the list. not the front. the tail. the back. the lil caboose. πŸš‚βœ¨ and yes, it lives in the libqb programmer's manual, so you already know it's giving real-deal Unix energy.


✨ SYNOPSIS ✨

#include <qb/qblist.h>

static void qb_list_add_tail(
    struct qb_list_head   *element,  /* pointer to the element to add */
    struct qb_list_head   *head      /* pointer to the list head */
);

no cap, that's the whole signature. two pointers, one job. 🫢


🌸 PARAMS 🌸

  • element β€” pointer to the element to add. this is the lil guy you're yeeting into the list πŸ’…
  • head β€” pointer to the list head. this is the list you're yeeting him into πŸ’…

πŸ¦‹ DESCRIPTION πŸ¦‹

bestie... the description section in the original is empty. like, empty empty. nothing but vibes and silence. πŸ™ˆ

so yeah, the canonical manpage doesn't spill any extra lore here β€” the name and the params are doing all the talking. which, honestly? iconic. it said "my function name is my description" and walked away. periodt. πŸ‘‘


πŸŽ€ STRUCTURES πŸŽ€

here's the struct you're working with, exactly as written, no edits no notes:

struct qb_list_head {
    struct   next;
    struct   prev;
};

that's the whole thing. two fields. next and prev. a doubly-linked-list head doing its main character thing. 🌈


πŸ’œ SEE ALSO πŸ’œ

go read these too, they're the friend group:


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

and that's the whole page, bestie!! πŸ’– mwah. this lil writeup comes to you courtesy of LIBQB, dated 2025-09-16, under the manual name QB_LIST_ADD_TAIL(3). go add something to the tail of a list and slay. πŸŽ€βœ¨πŸ¦‹

πŸ“¦ where this page comes from