nvme_init_g...ate_limiting(9)
π nvme_init_g...ate_limiting(9)
okay so bestie, welcome to the libnvme API manual β yes that's the manual we're in, and yes this page is short, but it's iconic and we're gonna read it together π«Ά
β¨ NAME β¨
nvme_init_get_log_rate_limiting β the one that initializes the passthru command for Rate Limiting. that's it. that's the whole job. main character energy but make it a log page π
πΈ SYNOPSIS πΈ
void nvme_init_get_log_rate_limiting (struct libnvme_passthru_cmd *cmd ,
__u64 lpo , void *log , __u32 len );
like, she takes four things and returns void β no drama, no return value, she just does the thing π
π¦ ARGUMENTS π¦
cmdβ the passthru command you're gonna use. this is the one getting set up, so hand her over fr fr β¨lpoβ offset into the log page. it's a__u64, so likeβ¦ big offset energy πlogβ the log page data buffer.void *because she's flexible like that πlenβ length, in bytes, of the user buffer you're providing to hold the log data. a__u32. count your bytes bestie, she's gonna trust you π
π DESCRIPTION π
so what does she actually do? she initializes the passthru command buffer for the Get Log command, with the LID value NVME_LOG_LID_RATE_LIMITING. that's the vibe check: Get Log + that specific LID, all set up and ready π
no cap, no extra steps, no secret sauce β that's the whole description and she ate π₯
lowkey the most important thing here is that LID constant: NVME_LOG_LID_RATE_LIMITING. if you're not passing that vibe, you're on a different log page entirely, iykyk π
and that's the page!! this little cutie comes from the libnvme API manual, dated October 2026 β mwah, go initialize some rate limiting logs, you got this π§βπ
π¦ 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