MCPcopy Create free account
hub / github.com/LemonOSProject/LemonOS / Disable

Method Disable

Kernel/include/nvme.h:365–367  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

363 }
364
365 __attribute__((always_inline)) inline void Disable(){
366 cRegs->config &= ~NVME_CFG_ENABLE;
367 }
368
369 __attribute__((always_inline)) inline void SetAdminCompletionQueueSize(uint16_t sz){
370 cRegs->adminQAttr = (cRegs->adminQAttr & ~NVME_AQA_ACQS(NVME_AQA_AQS_MASK)) | NVME_AQA_ACQS(sz - 1); // 0's based

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected