本文整理汇总了C++中SharedACQPtr::GetNumEntries方法的典型用法代码示例。如果您正苦于以下问题:C++ SharedACQPtr::GetNumEntries方法的具体用法?C++ SharedACQPtr::GetNumEntries怎么用?C++ SharedACQPtr::GetNumEntries使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SharedACQPtr
的用法示例。
在下文中一共展示了SharedACQPtr::GetNumEntries方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: FrmwkEx
void
AdminQRollChkDiff_r10b::VerifyCESQValues(SharedACQPtr acq,
uint16_t expectedVal)
{
union CE ce;
struct nvme_gen_cq acqMetrics = acq->GetQMetrics();
// The CQ's metrics after reaping holds head_ptr plus 1 needed. Also Take
// Q roll over into account
if (acqMetrics.head_ptr == 0) {
ce = acq->PeekCE(acq->GetNumEntries() - 1);
} else {
ce = acq->PeekCE(acqMetrics.head_ptr - 1);
}
if (ce.n.SQID != 0) {
acq->Dump(
FileSystem::PrepDumpFile(mGrpName, mTestName, "acq", "CE.SQID"),
"CE SQ ID Inconsistent");
throw FrmwkEx(HERE, "Expected CE.SQID = 0 in ACQ completion entry but actual "
"CE.SQID = 0x%04X", ce.n.SQID);
}
if (ce.n.SQHD != expectedVal) {
acq->Dump(
FileSystem::PrepDumpFile(mGrpName, mTestName, "acq", "CE.SQHD"),
"CE SQ Head Pointer Inconsistent");
throw FrmwkEx(HERE,
"Expected CE.SQHD = 0x%04X in ACQ completion entry but actual "
"CE.SQHD = 0x%04X", expectedVal, ce.n.SQHD);
}
}