ULONG
BYTE_OFFSET(
IN PVOID Va
);
BYTE_OFFSET takes a virtual address and returns the byte offset of that address within the page.
BYTE_OFFSET returns the offset portion of the virtual address.
Callers of BYTE_OFFSET can be running at any IRQL.