QB_RB_CHMOD(3)

πŸ’– QB_RB_CHMOD β€” like chmod but make it ringbuffer πŸ’–

okay so bestie, welcome to the libqb Programmer's Manual, page qb_rb_chmod(3). this is the lil function that's basically chmod but for your ringbuffer's resources. yes, THE ringbuffer. the one you're emotionally attached to. she's getting a permission glow-up ✨


πŸŽ€ NAME πŸŽ€

qb_rb_chmod β€” Like chmod, it changes the mode of the ringbuffer's resources.

like. exactly that. no notes. she does what it says on the tin πŸ’…


🌸 SYNOPSIS 🌸

#include <qb/qbrb.h>

int32_t qb_rb_chmod(
    qb_ringbuffer_t   *rb,    /* ringbuffer instance */
    mode_t             mode   /* mode to change to */
);

so you're pulling in <qb/qbrb.h>, and then you hand her two things: the ringbuffer, and the mode you want. that's it. that's the whole vibe πŸ¦‹


🫢 PARAMS 🫢

  • rb β€” ringbuffer instance. the actual ringbuffer you're about to mess with, your main character 🫢
  • mode β€” mode to change to. the new perms. the fit. the look. the aesthetic she's switching into πŸ‘‘

🌈 DESCRIPTION 🌈

okay so... not me opening the description section and there's literally nothing here 😭 the original manpage just leaves it blank. empty. a void. no explanation, no lore, no backstory. she simply does not elaborate πŸ’€

so we're all just gonna have to live with the mystery. iconic behaviour honestly.


⭐ RETURN VALUE ⭐

  • 0 β€” == ok. we love a zero. we celebrate a zero. she ate and left no crumbs πŸŽ‰
  • -errno β€” for error. something went wrong, and she's telling you which wrong via the negative errno. rude but informative πŸ’€

🧚 SEE ALSO 🧚

go read her friends, they're all slaying in their own ways:

qb_rb_close(3), qb_rb_refcount_get(3), qb_rb_chown(3), qb_rb_open(3), qb_rb_write_to_file(3), qb_rb_create_from_file(3), qb_rb_chunks_used(3), qb_rb_chunk_reclaim(3), qb_rb_space_used(3), qb_rb_chunk_write(3), qb_rb_shared_user_data_get(3), qb_rb_chunk_commit(3), qb_rb_chunk_peek(3), qb_rb_space_free(3), qb_rb_name_get(3), qb_rb_chunk_alloc(3), qb_rb_chunk_read(3)


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


bestie heads up: that DESCRIPTION section being empty is straight from the source, fr fr. i'm not hiding anything from you, the manpage just didn't write one. don't come for me πŸ₯Ί

alright that's the whole page, periodt πŸ’… this came from libqb, dated 2025-09-16, and it's the QB_RB_CHMOD(3) page. go forth and chmod your ringbuffers responsibly, bestie πŸ¦‹πŸ’–βœ¨

πŸ“¦ where this page comes from