Kernel shutdown method, electronic equipment and storage medium

The invention provides a kernel shutdown method, electronic equipment and a storage medium. The method is applied to the electronic equipment powered by a battery, when the battery enters a low-voltage and low-voltage state, if a target function module determines that a trigger condition of a kernel...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: DU FANQI, QI YANGANG
Format: Patent
Sprache:chi ; eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:The invention provides a kernel shutdown method, electronic equipment and a storage medium. The method is applied to the electronic equipment powered by a battery, when the battery enters a low-voltage and low-voltage state, if a target function module determines that a trigger condition of a kernel shutdown module is met currently, the target function module applies for a thread lock with the kernel shutdown module, and only when the target function module successfully holds the thread lock of the kernel shutdown module, the thread lock of the kernel shutdown module can be unlocked. And the kernel shutdown module can be triggered to execute a kernel shutdown process. Therefore, the shutdown process of the Linux kernel of the electronic equipment does not have the reentry problem, and the panic problem of the electronic equipment in a low-voltage and low-voltage state due to the reentry of the shutdown process of the Linux kernel is also avoided. 本申请提供了一种内核关机方法、电子设备及存储介质。该方法应用于电池供电的电子设备中,在电池进入低压低电状态时,目标功能模块如果