STRUCT ADF_RL(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct adf_rl(9) β€” Kernel API Manual, but make it cute ✨

ok so bestie, welcome to the struct adf_rl page β€” this is a Kernel API Manual entry and honestly it's giving "backstage pass to the rate limiting closet" πŸŽ€


🌸 NAME 🌸

struct adf_rl β€” the ratelimiting data structure. yeah. that's the whole vibe. it's the data structure, it does ratelimiting, we move πŸ’…


✨ SYNOPSIS ✨

ok here's the actual shape of it, and pls don't touch a single character because this is exactly how it's declared:

struct adf_rl {
    struct adf_accel_dev *accel_dev;
    struct adf_rl_hw_data *device_data;
    struct rl_sla *sla[RL_NODES_CNT_MAX];
    struct rl_sla *root[RL_ROOT_MAX];
    struct rl_sla *cluster[RL_CLUSTER_MAX];
    struct rl_sla *leaf[RL_LEAF_MAX];
    bool rp_in_use[RL_RP_CNT_MAX];
    struct mutex rl_lock;
    struct adf_rl_interface_data user_input;
 };

like, look at her. all those arrays. main character energy fr 🫢


πŸ¦‹ Members πŸ¦‹

okay bestie, member by member, no cap, nothing left out:

  • accel_dev β€” pointer to acceleration device data. literally the pointer to the accel device's data, that's it πŸ’–
  • device_data β€” pointer to rate limiting data specific to a device type (or revision). so like, per-device-type / per-revision RL data lives here 🌈
  • sla β€” array of pointers to SLA objects. all of them. the whole squad πŸ‘‘
  • root β€” array of pointers to root type SLAs, and the element number reflects node_id ⭐
  • cluster β€” array of pointers to cluster type SLAs, element number reflects node_id 🧚
  • leaf β€” array of pointers to leaf type SLAs, element number reflects node_id πŸ“
  • rp_in_use β€” array of ring pair IDs already used in one of the SLAs πŸ™ˆ (so like, taken. spoken for. do not touch.)
  • rl_lock β€” mutex object which is protecting data in this structure πŸ”’ the bodyguard, the bouncer, the "not you" at the door πŸ’€
tiny heads up: user_input also shows up in the struct up there, but this page doesn't describe it β€” so we're not gonna make anything up about it. we simply don't know her like that πŸŽ€

πŸ’œ SEE ALSO πŸ’œ

  • Kernel file ./drivers/crypto/intel/qat/qat_common/adf_rl.h
  • struct adf_rl_sla_input_data(9)
  • struct rl_sla(9)

go read those next, iykyk πŸ”₯


and that's the page, bestie! πŸ¦‹ this one came out of ./drivers/crypto/intel/qat/qat... and it's dated October 2026 β€” so like, mark your calendar, stan the struct, and remember: the lock protects the data, periodt πŸ’…βœ¨

πŸ“¦ where this page comes from