hello everybody,<br><br>I am new to kernel programming.<br>Can anyone tell me how to start it.<br><br>kishore kumar<br><br><div class="gmail_quote">On Sun, Sep 2, 2012 at 9:30 PM,  <span dir="ltr">&lt;<a href="mailto:kernelnewbies-request@kernelnewbies.org" target="_blank">kernelnewbies-request@kernelnewbies.org</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Send Kernelnewbies mailing list submissions to<br>
        <a href="mailto:kernelnewbies@kernelnewbies.org">kernelnewbies@kernelnewbies.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
or, via email, send a message with subject or body &#39;help&#39; to<br>
        <a href="mailto:kernelnewbies-request@kernelnewbies.org">kernelnewbies-request@kernelnewbies.org</a><br>
<br>
You can reach the person managing the list at<br>
        <a href="mailto:kernelnewbies-owner@kernelnewbies.org">kernelnewbies-owner@kernelnewbies.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than &quot;Re: Contents of Kernelnewbies digest...&quot;<br>
<br>
<br>
Today&#39;s Topics:<br>
<br>
   1. Re: map bss to addr zero (Ritesh Harjani)<br>
   2. Re: map bss to addr zero (Mulyadi Santosa)<br>
   3. Re: Kernel booting problem. (Jim Cromie)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Sun, 2 Sep 2012 00:53:17 +0530<br>
From: Ritesh Harjani &lt;<a href="mailto:ritesh.harjani@gmail.com">ritesh.harjani@gmail.com</a>&gt;<br>
Subject: Re: map bss to addr zero<br>
To: Srinivas Ramanan &lt;<a href="mailto:srinivas.ramanan@gmail.com">srinivas.ramanan@gmail.com</a>&gt;,<br>
        <a href="mailto:mulyadi.santosa@gmail.com">mulyadi.santosa@gmail.com</a><br>
Cc: <a href="mailto:kernelnewbies@kernelnewbies.org">kernelnewbies@kernelnewbies.org</a><br>
Message-ID:<br>
        &lt;<a href="mailto:CAD15agbM8jO%2B-KmrRByDpd0NRN3k_bcpEQi9p8W721c8_9Pefg@mail.gmail.com">CAD15agbM8jO+-KmrRByDpd0NRN3k_bcpEQi9p8W721c8_9Pefg@mail.gmail.com</a>&gt;<br>
Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br>
<br>
On Mon, Aug 27, 2012 at 2:01 AM, Srinivas Ramanan &lt;<br>
<a href="mailto:srinivas.ramanan@gmail.com">srinivas.ramanan@gmail.com</a>&gt; wrote:<br>
<br>
&gt; Hi all,<br>
&gt; This is an interview question.<br>
&gt; &quot;What is the implication of mapping BSS to the Virtual Memory Segment 0?&quot;<br>
&gt;<br>
&gt;  I was not able to find the answer from web. So posting here.<br>
&gt; thanks,<br>
&gt; srinivas<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Kernelnewbies mailing list<br>
&gt; <a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br>
&gt; <a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
&gt;<br>
<br>
<br>
Hi,<br>
<br>
The bss section typically includes all uninitialized variables declared<br>
with the static keyword.<br>
The zero page which  is a copy-on-write page that reads as zero is used to<br>
map the BSS segment. Any process referencing the zero page sees the page<br>
filled with zeos and if it tries to writes to the page, it ends up<br>
modifying a private copy. (LDD ch15. page 429)<br>
<br>
Mulyadi,<br>
<br>
Why it will generate a page fault later when process will tries to<br>
reference it, while it already has mapped with the zero page?<br>
<br>
<br>
Sorry if i am wrong anywhere.<br>
Ritesh<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <a href="http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20120902/b18f7568/attachment-0001.html" target="_blank">http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20120902/b18f7568/attachment-0001.html</a><br>

<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Sun, 2 Sep 2012 12:46:29 +0700<br>
From: Mulyadi Santosa &lt;<a href="mailto:mulyadi.santosa@gmail.com">mulyadi.santosa@gmail.com</a>&gt;<br>
Subject: Re: map bss to addr zero<br>
To: Ritesh Harjani &lt;<a href="mailto:ritesh.harjani@gmail.com">ritesh.harjani@gmail.com</a>&gt;<br>
Cc: Srinivas Ramanan &lt;<a href="mailto:srinivas.ramanan@gmail.com">srinivas.ramanan@gmail.com</a>&gt;,<br>
        <a href="mailto:kernelnewbies@kernelnewbies.org">kernelnewbies@kernelnewbies.org</a><br>
Message-ID:<br>
        &lt;CAGdaadYXCTYad0aRKME1eyQ-rt1gh=vN=<a href="mailto:Siyz2HtQzONpCBgVw@mail.gmail.com">Siyz2HtQzONpCBgVw@mail.gmail.com</a>&gt;<br>
Content-Type: text/plain; charset=ISO-8859-1<br>
<br>
Hi... :)<br>
<br>
On Sun, Sep 2, 2012 at 2:23 AM, Ritesh Harjani &lt;<a href="mailto:ritesh.harjani@gmail.com">ritesh.harjani@gmail.com</a>&gt; wrote:<br>
&gt; Mulyadi,<br>
&gt;<br>
&gt; Why it will generate a page fault later when process will tries to reference<br>
&gt; it, while it already has mapped with the zero page?<br>
&gt;<br>
&gt;<br>
<br>
Hopefully I interpret it correctly that this question is for me :)<br>
<br>
Sorry, maybe I am not clear, by reference, I meant &quot;updating &quot; or<br>
&quot;writing&quot; new value.<br>
<br>
Since this zero page is mapped as read only, when writing to this zero<br>
page, page fault is triggered. Then page fault handler conclude that<br>
this is actually a write toward zero page from valid address, so it<br>
will allocate page(s).<br>
<br>
<br>
--<br>
regards,<br>
<br>
Mulyadi Santosa<br>
Freelance Linux trainer and consultant<br>
<br>
blog: <a href="http://the-hydra.blogspot.com" target="_blank">the-hydra.blogspot.com</a><br>
training: <a href="http://mulyaditraining.blogspot.com" target="_blank">mulyaditraining.blogspot.com</a><br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Sun, 2 Sep 2012 04:23:02 -0600<br>
From: Jim Cromie &lt;<a href="mailto:jim.cromie@gmail.com">jim.cromie@gmail.com</a>&gt;<br>
Subject: Re: Kernel booting problem.<br>
To: Sri Ram Vemulpali &lt;<a href="mailto:sri.ram.gmu06@gmail.com">sri.ram.gmu06@gmail.com</a>&gt;<br>
Cc: Mulyadi Santosa &lt;<a href="mailto:mulyadi.santosa@gmail.com">mulyadi.santosa@gmail.com</a>&gt;, Jonathan Neusch?fer<br>
        &lt;<a href="mailto:j.neuschaefer@gmx.net">j.neuschaefer@gmx.net</a>&gt;,        <a href="mailto:kernelnewbies@kernelnewbies.org">kernelnewbies@kernelnewbies.org</a><br>
Message-ID:<br>
        &lt;CAJfuBxytc+u1W99QKA7HCR_Su1NRx=<a href="mailto:1Qhn5MdLTKT_DYGpLuoQ@mail.gmail.com">1Qhn5MdLTKT_DYGpLuoQ@mail.gmail.com</a>&gt;<br>
Content-Type: text/plain; charset=ISO-8859-1<br>
<br>
On Wed, Aug 29, 2012 at 10:06 PM, Sri Ram Vemulpali<br>
&lt;<a href="mailto:sri.ram.gmu06@gmail.com">sri.ram.gmu06@gmail.com</a>&gt; wrote:<br>
&gt; Thanks for the replies again.<br>
&gt;<br>
&gt; This time the problem is in tty specification.<br>
&gt; Kernel supports console=tty0 (virtual terminal), where as my inittab has<br>
&gt; entry ::sysinit:/sbin/getty -L ttyS0 vt100. I have to change the ttyS0 to tty0.<br>
&gt;<br>
&gt; Once I changed this, I got login prompt.<br>
&gt;<br>
&gt; But I do not understand how we tell kernel to use ttyS0 over tty0.<br>
&gt; Because in kernel config I selected was ttyS0 but it is using tty0.<br>
<br>
try console on boot-line<br>
<br>
root@voyage:~# more /proc/cmdline<br>
root=LABEL=ROOT_FS  console=ttyS0,115200n8  rootdelay=120 reboot=bios loglevel=8<br>
 dynamic_debug.verbose=1<br>
<br>
&gt; Weird?<br>
&gt;<br>
&gt; Thanks,<br>
&gt; Sri.<br>
&gt;<br>
<br>
<br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
Kernelnewbies mailing list<br>
<a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br>
<a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
<br>
<br>
End of Kernelnewbies Digest, Vol 22, Issue 1<br>
********************************************<br>
</blockquote></div><br>