NVME_INIT_SET_FEATURES_RATE_LIMITING-LIBNVME3(2)
π nvme_init_set_features_rate_limiting(9) β libnvme API manual π
okay so bestie, you're in the libnvme API manual, section 9, and the star of this page is nvme_init_set_features_rate_limiting. it's giving "glow-up your passthru buffer" energy and honestly? iconic. β¨
β¨ NAME β¨
nvme_init_set_features_rate_limiting β Initialize passthru command for Rate Limiting π
like, that's literally her whole job. she sets up the passthru command so you can go do Rate Limiting things. no cap. π
π¦ SYNOPSIS π¦
void nvme_init_set_features_rate_limiting (struct libnvme_passthru_cmd
*cmd , bool sv , __u8 target , __u16 tid , struct
nvme_rate_limiting_data *data );
she returns void btw, so don't go looking for a return value, she's not that kind of function π«Ά
πΈ ARGUMENTS πΈ
cmdβ the Passthru command to use. this is the buffer she's gonna initialize, so hand her a good one bestie πsvβ Save value across power states. it's abool, so it's a yes/no vibe check βtargetβ Target of the rate limits setting, seeenum nvme_rate_limiting_target. this is the__u8that says where the rate limiting is happening πtidβ Target Identifier for the target specified bytarget. a__u16, and yes it pairs withtargetlike the matching besties they are πdataβ User address of the Rate Limiting data buffer, seestruct nvme_rate_limiting_data. this is the actual payload, the main character of the whole operation π
π₯ DESCRIPTION π₯
okay so what she actually does: she Initializes the passthru command buffer for the Set Features command with FID value NVME_FEAT_FID_RATE_LIMITING. that's it, that's the whole serve. she's not doing the ioctl for you, she's prepping the buffer so it's all cute and ready to go. periodt. π
ngl bestie, this is a setup function β the passthru command buffer is what gets filled in, so make sure your cmd is valid before you hand it over. π
π« SEE ALSO π«
so the page doesn't spell out a separate SEE ALSO list, but it does point you at two things, and you should absolutely go read them:
enum nvme_rate_limiting_targetβ for thetargetargument πΈstruct nvme_rate_limiting_dataβ for thedataargument π¦
and that's the page, bestie! π₯³ this absolute gem comes to you from the libnvme API manual, dated October 2026 β go off and rate-limit responsibly, mwah ππβ¨
π¦ where this page comes from
- arch rolling: nvme-cli 3.2-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms