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

Function nvme_submit_io_cmd

components/drivers/nvme/nvme.c:169–178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167}
168
169static rt_err_t nvme_submit_io_cmd(struct rt_nvme_controller *nvme,
170 struct rt_nvme_command *cmd)
171{
172 rt_uint16_t qid;
173
174 qid = rt_atomic_add(&nvme->ioqid[rt_hw_cpu_id()], RT_CPUS_NR);
175 qid %= nvme->io_queue_max;
176
177 return nvme_submit_cmd(&nvme->io_queues[qid], cmd);
178}
179
180/*
181 * PRP Mode:

Callers 3

nvme_blk_rwFunction · 0.85
nvme_blk_syncFunction · 0.85
nvme_blk_eraseFunction · 0.85

Calls 2

nvme_submit_cmdFunction · 0.85
rt_hw_cpu_idFunction · 0.50

Tested by

no test coverage detected