QB_IPCS_RE...RATE_LIMIT(3)

πŸ’… qb_ipcs_request_rate_limit β€” from the libqb Programmer's Manual πŸŽ€

okay bestie, sit down, we're doing a libqb page today and it's literally one function. short king. but important, so pay attention 🫢


✨ NAME ✨

qb_ipcs_request_rate_limit β€” Limit the incoming request rate.

like. that's it. that's the whole job. it puts a leash on how fast requests come at you. πŸ•


🌸 SYNOPSIS 🌸

#include <qb/qbipcs.h>

void qb_ipcs_request_rate_limit(
    qb_ipcs_service_t       *s,   /* service instance */
    enum qb_ipcs_rate_limit  rl   /* the new rate */
);

no return value. it's a void. it just does the thing and leaves. main character behaviour honestly. ✨


πŸ¦‹ PARAMS πŸ¦‹

  • s β€” the service instance. the actual service you're messing with. your girl. your project. the one whose vibe you're about to adjust.
  • rl β€” the new rate. it's an enum qb_ipcs_rate_limit, so it has to be one of the iconic little constants listed down below. πŸ’–

πŸ’œ DESCRIPTION πŸ’œ

ngl bestie, the original page is quiet here. it says the name of the section and then moves straight on to the structures β€” no extra prose, no little story, nothing. so we're not inventing lore that isn't there. πŸ™ˆ the whole personality of this page lives in the name, the params and the enum, and we are respecting that.


πŸ‘‘ STRUCTURES πŸ‘‘

this is the menu of rates you can pass in. your rl argument has to be one of these, periodt:

enum qb_ipcs_rate_limit {
      QB_IPCS_RATE_FAST;
      QB_IPCS_RATE_NORMAL;
      QB_IPCS_RATE_SLOW;
      QB_IPCS_RATE_OFF;
      QB_IPCS_RATE_OFF_2;
};

five options, no notes. and yes, they're written with semicolons in the original β€” we are copying it character for character, no "fixing", no touching, hands off. πŸ’…


πŸ”₯ SEE ALSO πŸ”₯

the full squad. every single one. go read them when you're done here:


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


okay that's the whole page bestie, you ate it, you understood it, you're basically a libqb girlie now πŸŒˆπŸ’– this one came out of the libqb manual and it's dated 2025-09-16 β€” go forth and rate-limit responsibly, ily, byeee πŸ§šβœ¨πŸ¦‹

πŸ“¦ where this page comes from