Is there a api/call to print stack trace to windbg from within my driver?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



I am looking to print stack trace from within a particular function of my
driver code, that appears in windbg
whenever that code path gets hit..
Is there such an api/function to do so?


.