Patent ID: 9262283
Filing Date: 2016-02-16
CPC Classification: G06F

Claim Text:
1. A method for reading a kernel log, upon a kernel panic, in an operation system which uses a kernel, the method being applicable to a computing device including a processing unit and a storage unit electrically coupled to the processing unit and including a log backup partition and a user data partition, the storage unit for storing the kernel, the method comprising: the computing device performing the operating system by the kernel; the computing device generating a kernel log upon performing the operating system, and writing the kernel log into the log backup partition; and upon a kernel panic occurring and then the processing unit being reset, the computing device performing a kernel initialization procedure, wherein the kernel log in the log backup partition includes information of a process of operating the kernel which was operating before the processing unit was reset, and wherein the log backup partition includes a data accessing indicator section storing a data accessing indicator, the step of writing the kernel log into the log backup partition includes writing the kernel log into a data section of the log backup partition, and the kernel initialization procedure further comprises the following: accessing the data accessing indicator to determine a status of the data accessing indicator; if determined that the status of the data accessing indicator is set as permitting writing into the data section, setting the status of the data accessing indicator as permitting reading the kernel log in the data section of the log backup partition, and reading and then writing the kernel log on the log backup partition into the user data partition; if determined that the status of the data accessing indicator is set to an unknown status, setting the data accessing indicator into a write status, generating a new kernel log, and writing the new kernel log onto a kernel buffer partition and the log backup partition.