Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要使用没有任何 sysfs/debugfs 的系统(这是一个强要求,无法更改)。
我需要了解如何在没有此文件系统的情况下设置 Linux。
例如在配置各种 omap PM(电源管理功能)时,我需要设置以下内容:
echo 1 > /dbg/pm_debug/sleep_while_idle
例如,您是否认为可以将其设置为默认值 1(我不需要在运行时更改该值)?如何做呢 ?
我发现 sysfs/debugfs 设置的值实际上是设置到内核中的一些变量中的,因此实际上是在内核中使用预定义(默认)值设置特定变量的问题。