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 π
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
- fedora 44: libqb-devel 2.0.9-2.fc44 Β· LGPL-2.1-or-later
- fedora 44: libqb-devel 2.0.9-2.fc44 Β· LGPL-2.1-or-later
- ubuntu resolute: libqb-dev 2.0.9-1ubuntu1 Β· LGPL-2.1-or-later
- ubuntu stonking: libqb-dev 2.0.9-1ubuntu1 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms