class PlatformCrashlog
Defined at line 19 of file ../../zircon/kernel/include/platform/crashlog.h
Public Methods
Interface & Get ()
Interface management.
By default, there is always a Crashlog implementation available, and a
reference to it can be fetched using the |Get| method. At boot, however,
this will be a default trivial implementation which does nothing. The
system may switch away from this interface when it discovers usable
non-volatile storage by calling |Bind|, and passing a reference to a
specific Crashlog implementation. Note that this implementation must stay
alive for the entire life of the kernel. Once bound to a non-trivial
implementation, the interface can no longer be rebound, and any attempts to
do so will return an error.
Code may check to see if a non-trivial implementation has been bound by
calling |HasNonTrivialImpl|.
Defined at line 80 of file ../../zircon/kernel/include/platform/crashlog.h
bool HasNonTrivialImpl ()
Defined at line 82 of file ../../zircon/kernel/include/platform/crashlog.h
zx_status_t Bind (Interface & impl)
Defined at line 86 of file ../../zircon/kernel/include/platform/crashlog.h