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.
 


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.
 

Members online


Latest posts

Top