<br>sorry for forgetting CC the mail list.<br><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Zhouping Liu</b> <span dir="ltr">&lt;<a href="mailto:sanweidaying@gmail.com">sanweidaying@gmail.com</a>&gt;</span><br>
Date: 2012/11/6<br>Subject: Re: is there a C func that can check kernel config file?<br>To: bill4carson &lt;<a href="mailto:bill4carson@gmail.com">bill4carson@gmail.com</a>&gt;<br><br><br><br><div class="gmail_extra"><br>
<br><div class="gmail_quote"><div class="im">2012/11/6 bill4carson <span dir="ltr">&lt;<a href="mailto:bill4carson@gmail.com" target="_blank">bill4carson@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">

<div><br>
<br>
On 2012年11月06日 10:35, Zhouping Liu wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Hello,<br>
<br>
As subject, as we know we can check the kernel config file through reading &#39;/usr/src/kernels/`uname -r`/.config&#39; (fedora distro), it&#39;s apparently to find out which config is open/close. but if I&#39;d like do this in C program, how to do that, is there interface/func in some header file?<br>


</blockquote>
<br>
<br></div>
execve &quot;zcat /proc/config.gz | grep CONFIG_XXX&quot;<br></blockquote></div><div><br>/proc/config.gz has been removed (not sure since which kernel version), also it&#39;s similar with checking &#39;/usr/src/kernels/`uname -r`/.config&#39;.<br>

<br>I&#39;m not sure whether there is a C function in system headers file, that can recognize the special config option is open/close.<br><br>Thanks,<br>Zhouping<br>&nbsp;</div><div class="im"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">


<br>
<br>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Thanks,<br>
Zhouping<br>
<br>
<br>
<br>
______________________________<u></u>_________________<br>
Kernelnewbies mailing list<br>
<a href="mailto:Kernelnewbies@kernelnewbies.org" target="_blank">Kernelnewbies@kernelnewbies.<u></u>org</a><br>
<a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" target="_blank">http://lists.kernelnewbies.<u></u>org/mailman/listinfo/<u></u>kernelnewbies</a><span><font color="#888888"><br>
</font></span></blockquote><span><font color="#888888">
<br>
-- <br>
浮沉随浪只记今朝笑<br>
<br>
--bill<br>
</font></span></blockquote></div></div><br></div>
</div><br><div class="gmail_extra"><br><br><div class="gmail_quote">2012/11/6 Zhouping Liu <span dir="ltr">&lt;<a href="mailto:sanweidaying@gmail.com" target="_blank">sanweidaying@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br><div class="gmail_extra"><br><br><div class="gmail_quote"><div class="im">2012/11/6 bill4carson <span dir="ltr">&lt;<a href="mailto:bill4carson@gmail.com" target="_blank">bill4carson@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">

<div><br>
<br>
On 2012年11月06日 10:35, Zhouping Liu wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Hello,<br>
<br>
As subject, as we know we can check the kernel config file through reading &#39;/usr/src/kernels/`uname -r`/.config&#39; (fedora distro), it&#39;s apparently to find out which config is open/close. but if I&#39;d like do this in C program, how to do that, is there interface/func in some header file?<br>


</blockquote>
<br>
<br></div>
execve &quot;zcat /proc/config.gz | grep CONFIG_XXX&quot;<br></blockquote></div><div><br>/proc/config.gz has been removed (not sure since which kernel version), also it&#39;s similar with checking &#39;/usr/src/kernels/`uname -r`/.config&#39;.<br>

<br>I&#39;m not sure whether there is a C function in system headers file, that can recognize the special config option is open/close.<br><br>Thanks,<br>Zhouping<br>&nbsp;</div><div class="im"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">


<br>
<br>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Thanks,<br>
Zhouping<br>
<br>
<br>
<br>
______________________________<u></u>_________________<br>
Kernelnewbies mailing list<br>
<a href="mailto:Kernelnewbies@kernelnewbies.org" target="_blank">Kernelnewbies@kernelnewbies.<u></u>org</a><br>
<a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" target="_blank">http://lists.kernelnewbies.<u></u>org/mailman/listinfo/<u></u>kernelnewbies</a><span><font color="#888888"><br>
</font></span></blockquote><span><font color="#888888">
<br>
-- <br>
浮沉随浪只记今朝笑<br>
<br>
--bill<br>
</font></span></blockquote></div></div><br></div>
</blockquote></div><br></div>