is there a C func that can check kernel config file?
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? Thanks, Zhouping
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
participants (2)
-
Adam Lee -
Zhouping Liu