Boot Config Access

SMCA

New Member
Joined
Mar 11, 2020
Messages
1
Reaction score
0
Credits
0
Hi Team,

I am trying to calculate some timeout values based on HZ configured in kernel config file.
I would like to read the CONFIG_HZ configured in boot config file. Is there any system call available to read in C code?
or any other way to access it in our C code? Thanks in advance.
 


Drizzit89

Member
Joined
May 17, 2019
Messages
55
Reaction score
33
Credits
31
The link should give you the location of the config file I believe you are looking for. As far as C code, it usually isn't kept on the computer with the binary it is transformed into. C is more efficient than say python because the conversion to binary has already occurred and no interpretation has to occur for the CPU to perform the requested tasks. You would need the source C code to plainly read it as it was written.
 
MALIBAL Linux Laptops

Linux Laptops Custom Built for You
MALIBAL is an innovative computer manufacturer that produces high-performance, custom laptops for Linux.

For more info, visit: https://www.malibal.com

Members online


Top