MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / nvme_next_cmdid

Function nvme_next_cmdid

components/drivers/nvme/nvme.c:98–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96}
97
98rt_inline rt_le16_t nvme_next_cmdid(struct rt_nvme_controller *nvme)
99{
100 return rt_cpu_to_le16((rt_uint16_t)rt_atomic_add(&nvme->cmdid, 1));
101}
102
103static rt_err_t nvme_submit_cmd(struct rt_nvme_queue *queue,
104 struct rt_nvme_command *cmd)

Callers 1

nvme_submit_cmdFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected