is there a C func that can check kernel config file?

Adam Lee adam8157 at gmail.com
Mon Nov 5 23:48:21 EST 2012


On Tue, Nov 06, 2012 at 10:35:09AM +0800, Zhouping Liu wrote:
> Hello,
> 
> As subject, as we know we can check the kernel config file through reading '/
> usr/src/kernels/`uname -r`/.config' (fedora distro), it's apparently to find
> out which config is open/close. but if I'd like do this in C program, how to do
> that, is there interface/func in some header file?
> 

linux/scripts/kconfig/lkc.h and lkc_proto.h

like sym_get_tristate_value(), sym_get_string_value()...

-- 
Regards,
Adam Lee
http://adam8157.info



More information about the Kernelnewbies mailing list