Kernel: printk's no_console_suspend

Source: Internet
Author: User

In kernel printk. C, there is a global variable console_suspend_enabled, which controls whether messages can be output to the console after suspend. The default value is unavailable. This will cause some troubles to debug, especially when the kernel panic or other exceptions occur after suspend.

Therefore, you can modify this variable and re-compile the kernel, or the kernel also provides a kernel upload line: no_console_suspend, Which is OK when defining the kernel config.

However, this no_console_suspend line of the kernel does not seem to work. Let's take a look.CodeIt seems that if the Conditional compilation variable module is defined, this no_console_suspend will not work, and the corresponding _ setup is an empty function.

Therefore, the insurance point is to directly modify the console_suspend_enabled variable in printk. C.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.