Linux without sysfs/debugfs filesystem

断了今生、忘了曾经 提交于 2019-12-25 01:37:30

问题


I need to use a system without any sysfs/debugfs (this is a strong requirement, can't change it).

I need to understand how I can manage to set the Linux without this filesystem.

For example when configuring various omap PM (power management features) I need to set the following:

echo 1 > /dbg/pm_debug/sleep_while_idle

Do you think it is possible to set it as default to 1 for example (I don't need to change the value in runtime) ? How can it be done ?


回答1:


I find that the values that are set by sysfs/debugfs are actually set into some variables in kernel, so it is actually an issue of setting specific variables in kernel with predefind (default) value.



来源:https://stackoverflow.com/questions/26913935/linux-without-sysfs-debugfs-filesystem

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!