On Tue, Jun 04, 2024 at 07:09:56PM +0800, Dave Young wrote: > Anyway there is not such a helper for all cases. But maybe there should be... This is not the first case where the need arises to be able to say: if (am I a kexeced kernel) in code. Perhaps we should have a global var kexeced or so which gets incremented on each kexec-ed kernel, somewhere in very early boot of the kexec-ed kernel we do kexeced++; and then other code can query it and know whether this is a kexec-ed kernel and how many times it got kexec-ed... -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette _______________________________________________ kexec mailing list kexec@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/kexec