_scsih_set_n...down_latency(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– _scsih_set_nvme_max_shutdown_latency (9) β€” Kernel API Manual πŸ’–

okay bestie, welcome to the <pink>Kernel API Manual</pink> ✨ we're looking at _scsih_set_nvme_max_shutdown_latency today and honestly? she's a little function with big main-character energy. let's get into it 🫢


🌸 NAME 🌸

_scsih_set_nvme_max_shutdown_latency β€” update max_shutdown_latency. that's it. that's the whole job. iconic. πŸ’…


✨ SYNOPSIS ✨

void _scsih_set_nvme_max_shutdown_latency (struct MPT3SAS_ADAPTER *ioc
);

returns nothing (it's void, she gives nothing back and that's valid πŸ’€), takes one pointer, done.


πŸŽ€ ARGUMENTS πŸŽ€

  • ioc β€” the per adapter object. that's the whole vibe. one argument, no notes. 🌈

πŸ”₯ CONTEXT πŸ”₯

real talk: this function will acquire ioc->pcie_device_lock. so like, know that going in β€” she grabs the lock, that's part of the deal πŸ”’


πŸ’œ DESCRIPTION πŸ’œ

okay so here's what she actually does: she updates ioc->max_shutdown_latency to match the NVMe drive's RTD3 Entry Latency β€” specifically the one that reported the maximum among all the available NVMe drives πŸ‘‘

and the floor? the minimum max_shutdown_latency will be six seconds. six. seconds. no cap, that's the lower bound, don't @ me πŸ••

so basically: she looks at all your NVMe drives, finds the slowest-to-shutdown one, and sets the adapter's max shutdown latency to that. but never below six seconds. periodt. πŸ’–


πŸ¦‹ SEE ALSO πŸ¦‹

it's giving extensive. she has a whole extended universe of friends, and we're listing every single one because we don't do half-measures here πŸ’…

Kernel file ./drivers/scsi/mpt3sas/mpt3sas_scsih.c, plus:


ok that's a lot of cross-references and I typed every single one, you're welcome πŸ’– also reminder: the lock ioc->pcie_device_lock gets acquired, and the floor on max_shutdown_latency is six seconds. those are the two facts you actually need to remember for the exam πŸ“

and that's the whole page bestie!! 🌟 this one comes to you from <purple>./drivers/scsi/mpt3sas</purple> and is dated October 2026` β€” mwah, go read the source, ily, bye πŸ§šπŸ’œ

πŸ“¦ where this page comes from