I want to test create NVMe I/O Submission Queue Invalid Queue Address Offset
I use C posix_memalign to alloc a memory range
But how to check that the address i get is QWord aligned?
I know if i want the address is word aligned then address end is 00h and double word aligned address end is 000h
So is qword aligned address end is 0000h?
Can i check by below?
if( address & 0xF != 0 )
printf("Not qword aligned");
Thanks