Void rtl_test () {const int bufsize = 1024; uchar * pbuf1 = (uchar *) exallocatepool (pagedpool, bufsize ); // allocate memory kdprint ("allocated memory address pbuf1 = % 08x", pbuf1); uchar * pbuf2 = (uchar *) exallocatepool (pagedpool, bufsize ); // allocate memory kdprint ("allocated memory address pbuf2 = % 08x", pbuf2); rtlzeromemory (pbuf1, bufsize ); // kdprint ("initializing the memory address pbuf1 = % 08x to 0", pbuf1); rtlfillmemory (pbuf2, bufsize, 0xaa ); // memory filling: 0 xaakdprint ("fill the memory address pbuf2 = % 08x with 0xaa", pbuf2); If (bufsize = rtlcomparememory (pbuf1, pbuf2, bufsize )) // memory comparison {kdprint ("memory % 08x is equal to memory % 08x", pbuf1, pbuf2 ));} else {kdprint ("memory % 08x and memory % 08x are not equal", pbuf1, pbuf2);} rtlcopymemory (pbuf2, pbuf1, bufsize ); // memory copy kdprint ("copy the memory address pbuf1 = % 08x to the memory address pbuf2 = % 08x", pbuf1, pbuf2); rtlmovememory (pbuf2, pbuf1, bufsize ); // memory mobile kdprint ("Move the memory address pbuf1 = % 08x to the memory address pbuf2 = % 08x", pbuf1, pbuf2); If (bufsize = rtlcomparemory (pbuf1, pbuf2, bufsize) // memory comparison {kdprint ("memory % 08x equals memory % 08x", pbuf1, pbuf2 ));} else {kdprint ("memory % 08x and memory % 08x are not equal", pbuf1, pbuf2);} exfreepool (pbuf1); // release the memory exfreepool (pbuf2 );}