RtlCaptureContext equivalent

From: David Kaplan
Date: Sun Mar 20 2016 - 09:55:15 EST


Hi all

i'm looking for a function within the kernel (for x86_64/amd64) that I
can use from my module to save/load cpu context (something like
Windows' RtlCaptureContext fcn).

I assume there's something like that available but having a hard time
tracking it down.

Any pointers int he right direction would greatly be apprecaited!

Many thanks!