* download the source code of some commands
@ 2012-06-21 12:48 王哲
2012-06-21 12:53 ` Ashish_Bunkar at Dell.com
` (4 more replies)
0 siblings, 5 replies; 10+ messages in thread
From: 王哲 @ 2012-06-21 12:48 UTC (permalink / raw)
To: kernelnewbies
Hi all:
I want to see some source code of some commands,for
example,halt,reboot,uptime,and so on.
but i don't kown where to download? can you give me some advice?
Thanks in advance!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20120621/3a198ac7/attachment.html
^ permalink raw reply [flat|nested] 10+ messages in thread* download the source code of some commands
2012-06-21 12:48 download the source code of some commands 王哲
@ 2012-06-21 12:53 ` Ashish_Bunkar at Dell.com
2012-06-21 13:20 ` 王哲
2012-06-21 13:31 ` AFT
` (3 subsequent siblings)
4 siblings, 1 reply; 10+ messages in thread
From: Ashish_Bunkar at Dell.com @ 2012-06-21 12:53 UTC (permalink / raw)
To: kernelnewbies
All commands are bin files. You should find the scripts for them in /usr/bin only.
Ashish Bunkar
Linux Engineering
Dell | BDC
office +91-80-28078131, mobile +91-7259183696
Ashish_Bunkar at dell.com<mailto:narayanan_d@dell.com>
From: kernelnewbies-bounces@kernelnewbies.org [mailto:kernelnewbies-bounces at kernelnewbies.org] On Behalf Of ??
Sent: Thursday, June 21, 2012 6:19 PM
To: kernelnewbies
Subject: download the source code of some commands
Hi all:
I want to see some source code of some commands,for example,halt,reboot,uptime,and so on.
but i don't kown where to download? can you give me some advice?
Thanks in advance!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20120621/26c38f65/attachment.html
^ permalink raw reply [flat|nested] 10+ messages in thread* download the source code of some commands
2012-06-21 12:53 ` Ashish_Bunkar at Dell.com
@ 2012-06-21 13:20 ` 王哲
0 siblings, 0 replies; 10+ messages in thread
From: 王哲 @ 2012-06-21 13:20 UTC (permalink / raw)
To: kernelnewbies
2012/6/21 <Ashish_Bunkar@dell.com>
> All commands are bin files. You should find the scripts for them in
> /usr/bin only.****
>
> **
>
scripts ? can you give an example for an command? Thanks!
> **
>
> *Ashish Bunkar*
>
> Linux Engineering****
>
> *Dell* | BDC**
>
> *office* +91-80-28078131, *mobile* +91-7259183696****
>
> Ashish_Bunkar at dell.com <narayanan_d@dell.com>****
>
> ** **
>
> ** **
>
> ** **
>
> *From:* kernelnewbies-bounces at kernelnewbies.org [mailto:
> kernelnewbies-bounces at kernelnewbies.org] *On Behalf Of *??
> *Sent:* Thursday, June 21, 2012 6:19 PM
> *To:* kernelnewbies
> *Subject:* download the source code of some commands****
>
> ** **
>
> Hi all:
> I want to see some source code of some commands,for
> example,halt,reboot,uptime,and so on.
>
> but i don't kown where to download? can you give me some advice?
>
> Thanks in advance!****
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20120621/33ff205d/attachment.html
^ permalink raw reply [flat|nested] 10+ messages in thread
* download the source code of some commands
2012-06-21 12:48 download the source code of some commands 王哲
2012-06-21 12:53 ` Ashish_Bunkar at Dell.com
@ 2012-06-21 13:31 ` AFT
2012-06-21 13:32 ` Denis Kirjanov
` (2 subsequent siblings)
4 siblings, 0 replies; 10+ messages in thread
From: AFT @ 2012-06-21 13:31 UTC (permalink / raw)
To: kernelnewbies
?? <wangzhe5004@gmail.com> writes:
> Hi all:
> I want to see some source code of some commands,for
> example,halt,reboot,uptime,and so on.
>
> but i don't kown where to download? can you give me some advice?
>
> Thanks in advance!
Hi,
Although this does not relate to kernel, you can still view the codes of
common linux/unix commands. ftp.gnu.org hosts most of commands in
different packaging. Like "coreutils", "findutils", "netutils" etc. And
standalone codes are there for "grep", "ed" etc.
You can also get a copy of freebsd dvd. Freebsd dvd's comes with full
source code of the core system.
cheers.
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
^ permalink raw reply [flat|nested] 10+ messages in thread* download the source code of some commands
2012-06-21 12:48 download the source code of some commands 王哲
2012-06-21 12:53 ` Ashish_Bunkar at Dell.com
2012-06-21 13:31 ` AFT
@ 2012-06-21 13:32 ` Denis Kirjanov
2012-06-21 14:42 ` Greg Freemyer
2012-06-21 15:22 ` Wang Lei
4 siblings, 0 replies; 10+ messages in thread
From: Denis Kirjanov @ 2012-06-21 13:32 UTC (permalink / raw)
To: kernelnewbies
How does it related to the kernel?
On 6/21/12, ?? <wangzhe5004@gmail.com> wrote:
> Hi all:
> I want to see some source code of some commands,for
> example,halt,reboot,uptime,and so on.
>
> but i don't kown where to download? can you give me some advice?
>
> Thanks in advance!
>
--
Regards,
Denis
^ permalink raw reply [flat|nested] 10+ messages in thread
* download the source code of some commands
2012-06-21 12:48 download the source code of some commands 王哲
` (2 preceding siblings ...)
2012-06-21 13:32 ` Denis Kirjanov
@ 2012-06-21 14:42 ` Greg Freemyer
2012-06-21 15:22 ` Wang Lei
4 siblings, 0 replies; 10+ messages in thread
From: Greg Freemyer @ 2012-06-21 14:42 UTC (permalink / raw)
To: kernelnewbies
On Thu, Jun 21, 2012 at 8:48 AM, ?? <wangzhe5004@gmail.com> wrote:
> ? Hi all:
> ? ? ?? I want to see some source code of some commands,for
> example,halt,reboot,uptime,and so on.
>
> but i don't kown where to download??? can you give me some advice?
>
> Thanks in advance!
You need to figure out how your distro of choice lets you query the
filelist for packages.
I use openSUSE primarily and it has the Yast tool that lets you do
that in the software management section.
uptime => coreutils
reboot => aaa_base
halt => aaa_base
Once you know the package your distro uses you can download the
corresponding source package for it.
You will have better luck learning the process you need to know by
asking on a distro specific mailing list.
Greg
^ permalink raw reply [flat|nested] 10+ messages in thread* download the source code of some commands
2012-06-21 12:48 download the source code of some commands 王哲
` (3 preceding siblings ...)
2012-06-21 14:42 ` Greg Freemyer
@ 2012-06-21 15:22 ` Wang Lei
2012-06-21 15:46 ` 王哲
4 siblings, 1 reply; 10+ messages in thread
From: Wang Lei @ 2012-06-21 15:22 UTC (permalink / raw)
To: kernelnewbies
If you use Debian or other distribution with apt package system.
You can use whereis to locate this command.
[~]$ whereis halt
halt: /sbin/halt /usr/share/man/man5/halt.5.gz /usr/share/man/man8/halt.8.gz
Then, use dpkg -S to show which package it's included. This one is: sysvinit.
[~]$ dpkg -S /sbin/halt
sysvinit: /sbin/halt
Now, you can download the source from Debian source, use:
[~]$ apt-get source sysvinit
Or if you want the original source, use aptitude (or apt-cache) find
it's homepage.
[~]$ aptitude show sysvinit
Package: sysvinit
......
Homepage: http://savannah.nongnu.org/projects/sysvinit
At last, get it from there. As for other package systems, I think there
should be a way too. Or you can google.
On 2012-06-21 20:48:48 +0800, ?? wrote:
> Hi all:
> I want to see some source code of some commands,for
> example,halt,reboot,uptime,and so on.
>
> but i don't kown where to download? can you give me some advice?
>
> Thanks in advance!
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
--
Regards,
Lei
^ permalink raw reply [flat|nested] 10+ messages in thread* download the source code of some commands
2012-06-21 15:22 ` Wang Lei
@ 2012-06-21 15:46 ` 王哲
2012-06-21 17:06 ` Wang Lei
0 siblings, 1 reply; 10+ messages in thread
From: 王哲 @ 2012-06-21 15:46 UTC (permalink / raw)
To: kernelnewbies
2012/6/21 Wang Lei <f3d27b@gmail.com>
> If you use Debian or other distribution with apt package system.
>
> You can use whereis to locate this command.
> [~]$ whereis halt
> halt: /sbin/halt /usr/share/man/man5/halt.5.gz
> /usr/share/man/man8/halt.8.gz
>
> Then, use dpkg -S to show which package it's included. This one is:
> sysvinit.
> [~]$ dpkg -S /sbin/halt
> sysvinit: /sbin/halt
>
> Now, you can download the source from Debian source, use:
> [~]$ apt-get source sysvinit
>
> Or if you want the original source, use aptitude (or apt-cache) find
> it's homepage.
> [~]$ aptitude show sysvinit
> Package: sysvinit
> ......
> Homepage: http://savannah.nongnu.org/projects/sysvinit
>
> At last, get it from there. As for other package systems, I think there
> should be a way too. Or you can google.
>
Thank you very much ! i follow your steps, and download the source code
successfully.
On 2012-06-21 20:48:48 +0800, ?? wrote:
> Hi all:
> I want to see some source code of some commands,for
> example,halt,reboot,uptime,and so on.
>
> but i don't kown where to download? can you give me some advice?
>
> Thanks in advance!
> > _______________________________________________
> > Kernelnewbies mailing list
> > Kernelnewbies at kernelnewbies.org
> > http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
> --
> Regards,
> Lei
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20120621/6e586022/attachment.html
^ permalink raw reply [flat|nested] 10+ messages in thread
* RE: download the source code of some commands
@ 2012-06-21 14:29 jeshwanth Kumar N K
0 siblings, 0 replies; 10+ messages in thread
From: jeshwanth Kumar N K @ 2012-06-21 14:29 UTC (permalink / raw)
To: kernelnewbies
Hello
U can download coreutils from gnu.org.
Sent from my HTC
--
Send Kernelnewbies mailing list submissions to
kernelnewbies at kernelnewbies.org
To subscribe or unsubscribe via the World Wide Web, visit
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
or, via email, send a message with subject or body 'help' to
kernelnewbies-request at kernelnewbies.org
You can reach the person managing the list at
kernelnewbies-owner at kernelnewbies.org
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Kernelnewbies digest..."
Message: 1
Date: Thu, 21 Jun 2012 18:17:36 +0800
From: ?? <lovelylich@gmail.com>
Subject: Re: [RFC] tcp: How does SACK or FACK determine the time to
start fast retransmition?
To: Vijay Subramanian <subramanian.vijay@gmail.com>
Cc: netdev <netdev@vger.kernel.org>, kernelnewbies at kernelnewbies.org
Message-ID: <4FE2F4C0.4020900@gmail.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
? 2012/6/21 16:42, Vijay Subramanian ??:
> With SACK, number of dupacks does not have much meaning. What matters is
> --how the SACK scoreboard looks like i.e. which packets are tagged
> Lost/Sacked/Retransmitted
> -- Whether FACK is in use (this assumes holes in between sacked
> packets are lost and have left the network and so we can send out more
> packets)
>
> So, stack does not count the number of dupacks that have come in. Only
> SACK blocks matter.
> You can try to track the following path:
> tcp_ack() deals with incoming acks and if it sees a dupack (does not
> matter what number), or incoming packet contains SACK it calls
> tcp_fastretrans_alert() which calls tcp_xmit_retransmit_queue().
>
> tcp_xmit_retransmit_queue() decides which packets to retransmit. The
> first packet to start retransmitting from is tracked in
> tp->retransmit_skb_hint.
> Note that the dupThresh is actually tracked by tp->reordering which
> measures the reordering in the network and is not fixed at 3. So, if
> more than
> tp->reordering packets have been acked above a given packet, this
> packet is a candidate for retransmisson. See tcp_mark_head_lost() to
> see how the
> reordering metric is used to mark packets as lost. This corresponds to
> the check you mentioned in the RFC.
>
> So, window permitting, packets are sent as follows;
> (a)-- Packets marked lost as per description above
> (b)-- new packets (if any)
> (c)-- Holes between sacked packets which are not reliably lost.
>
> choice between (b) and (c) is made in tcp_can_forward_retransmit().
>
> Hope this helps.
> Vijay
>
It is just I wanted! Thanks for your detailed explaination and kindness.
------------------------------
Message: 2
Date: Thu, 21 Jun 2012 17:57:22 +0530
From: Vijay Chauhan <kernel.vijay@gmail.com>
Subject: Kernel Memory
To: kernelnewbies at kernelnewbies.org
Message-ID:
<CAJ61zBA++CFmTHSb2cRr=cKJdTkVYsSVs3_igESbbf21gWaqCQ@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1
Hello,
I am newbie.
It has been said "kernel memory is not pageable"
What does it mean? There is no concept of kernel virtual address?
Any simple explanation will help me to udnerstand.
Thanks,
Vijay
------------------------------
Message: 3
Date: Thu, 21 Jun 2012 20:48:48 +0800
From: ?? <wangzhe5004@gmail.com>
Subject: download the source code of some commands
To: kernelnewbies <kernelnewbies@kernelnewbies.org>
Message-ID:
<CAJrRU3VHh719vZgCCJ3r8K842YemEo9d5_0swgqsGDNXE0vxVQ@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"
Hi all:
I want to see some source code of some commands,for
example,halt,reboot,uptime,and so on.
but i don't kown where to download? can you give me some advice?
Thanks in advance!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20120621/3a198ac7/attachment-0001.html
------------------------------
Message: 4
Date: Thu, 21 Jun 2012 05:53:00 -0700
From: <Ashish_Bunkar@Dell.com>
Subject: RE: download the source code of some commands
To: <wangzhe5004@gmail.com>, <kernelnewbies@kernelnewbies.org>
Message-ID:
<A1A98FD909DC5248811A65C5D18E9C7635DE8BE55B@BLRX7MCDC202.AMER.DELL.COM>
Content-Type: text/plain; charset="iso-2022-jp"
All commands are bin files. You should find the scripts for them in /usr/bin only.
Ashish Bunkar
Linux Engineering
Dell | BDC
office +91-80-28078131, mobile +91-7259183696
Ashish_Bunkar at dell.com<mailto:narayanan_d@dell.com>
From: kernelnewbies-bounces@kernelnewbies.org [mailto:kernelnewbies-bounces at kernelnewbies.org] On Behalf Of ??
Sent: Thursday, June 21, 2012 6:19 PM
To: kernelnewbies
Subject: download the source code of some commands
Hi all:
I want to see some source code of some commands,for example,halt,reboot,uptime,and so on.
but i don't kown where to download? can you give me some advice?
Thanks in advance!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20120621/26c38f65/attachment-0001.html
------------------------------
Message: 5
Date: Thu, 21 Jun 2012 21:20:02 +0800
From: ?? <wangzhe5004@gmail.com>
Subject: Re: download the source code of some commands
To: Ashish_Bunkar at dell.com
Cc: kernelnewbies at kernelnewbies.org
Message-ID:
<CAJrRU3VPyFW+ww6GO+HHneMbsQhj676VX1f7g+eHus6_WTZSCw@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"
2012/6/21 <Ashish_Bunkar@dell.com>
> All commands are bin files. You should find the scripts for them in
> /usr/bin only.****
>
> **
>
scripts ? can you give an example for an command? Thanks!
> **
>
> *Ashish Bunkar*
>
> Linux Engineering****
>
> *Dell* | BDC**
>
> *office* +91-80-28078131, *mobile* +91-7259183696****
>
> Ashish_Bunkar at dell.com <narayanan_d@dell.com>****
>
> ** **
>
> ** **
>
> ** **
>
> *From:* kernelnewbies-bounces at kernelnewbies.org [mailto:
> kernelnewbies-bounces at kernelnewbies.org] *On Behalf Of *??
> *Sent:* Thursday, June 21, 2012 6:19 PM
> *To:* kernelnewbies
> *Subject:* download the source code of some commands****
>
> ** **
>
> Hi all:
> I want to see some source code of some commands,for
> example,halt,reboot,uptime,and so on.
>
> but i don't kown where to download? can you give me some advice?
>
> Thanks in advance!****
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20120621/33ff205d/attachment-0001.html
------------------------------
Message: 6
Date: Thu, 21 Jun 2012 17:32:22 +0400
From: Denis Kirjanov <kirjanov@gmail.com>
Subject: Re: download the source code of some commands
To: ?? <wangzhe5004@gmail.com>
Cc: kernelnewbies <kernelnewbies@kernelnewbies.org>
Message-ID:
<CAHj3AV=8508AG5KF96nSGQOpvi+xrEANQT_qCVeHmcXx7qJYsw@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8
How does it related to the kernel?
On 6/21/12, ?? <wangzhe5004@gmail.com> wrote:
> Hi all:
> I want to see some source code of some commands,for
> example,halt,reboot,uptime,and so on.
>
> but i don't kown where to download? can you give me some advice?
>
> Thanks in advance!
>
--
Regards,
Denis
------------------------------
Message: 7
Date: Thu, 21 Jun 2012 09:35:17 -0400
From: HowKernel StuffWorks <howkernelstuffworks@gmail.com>
Subject: Re: Kernel Memory
To: Vijay Chauhan <kernel.vijay@gmail.com>
Cc: kernelnewbies at kernelnewbies.org
Message-ID:
<CAJ5UobAF6GWUPgN11CNyZMtwBEvfrj1PXqJ5nht6NjbS=qWCyg@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"
Hi,
I am a kernel newbie too, Kernel memory is not pagable, because kernel
itself is responsible for paging. See this discussion,
http://kerneltrap.org/node/6404
Paging happens for regular processes, i.e each process memory is divided
into a page of certain size(4kb in Linux), so it can swap for another page
that might be needed for that particular moment, it usually replaces an
page that have not been used for long time(see LRU,internal fragmentation).
Kernel is a process too, just like anyother process, but it differs from
others because it directly talks to the hardware and also it is the one
which takes care of paging and LRU algo's. So it does not make much sense,
for a kernel memory to be pageable, because, if it removes the page that
contains that has the paging algorithm, then there is no way to come back,
you want to retrieve a page from disk_swap_area, but you cannot, because
the page that contains code to retrieve the instructions are paged :)...
This is not just for paging, since kernel controls everything, it is not
advisable to put its own code in swap area(see, virtual memory, virtual
memory = physical memory + swap space).
BTW, i am a kernel newbie too, this is my basic understanding, please feel
free to correct it, if I am wrong....
On Thu, Jun 21, 2012 at 8:27 AM, Vijay Chauhan <kernel.vijay@gmail.com>wrote:
> Hello,
>
> I am newbie.
> It has been said "kernel memory is not pageable"
> What does it mean? There is no concept of kernel virtual address?
>
> Any simple explanation will help me to udnerstand.
>
> Thanks,
> Vijay
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20120621/282abbb9/attachment.html
------------------------------
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies at kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
End of Kernelnewbies Digest, Vol 19, Issue 41
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20120621/c766d986/attachment-0001.html
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2012-06-21 17:06 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-21 12:48 download the source code of some commands 王哲
2012-06-21 12:53 ` Ashish_Bunkar at Dell.com
2012-06-21 13:20 ` 王哲
2012-06-21 13:31 ` AFT
2012-06-21 13:32 ` Denis Kirjanov
2012-06-21 14:42 ` Greg Freemyer
2012-06-21 15:22 ` Wang Lei
2012-06-21 15:46 ` 王哲
2012-06-21 17:06 ` Wang Lei
-- strict thread matches above, loose matches on Subject: below --
2012-06-21 14:29 jeshwanth Kumar N K
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).