[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <1280501907.1929.5.camel@cowboy>
Date: Fri, 30 Jul 2010 10:58:27 -0400
From: Davidlohr Bueso <dave@....org>
To: Américo Wang <xiyou.wangcong@...il.com>
Cc: Andi Kleen <andi@...stfloor.org>,
Alexey Dobriyan <adobriyan@...il.com>,
torvalds@...ux-foundation.org, linux-kernel@...r.kernel.org,
linux-fsdevel@...r.kernel.org
Subject: Re: [RFC] [PATCH procfs] Add process age
On Wed, 2010-07-28 at 14:56 +0800, Américo Wang wrote:
> On Mon, Jul 26, 2010 at 11:10:29AM -0400, Davidlohr Bueso wrote:
> >On Mon, 2010-07-26 at 16:48 +0200, Andi Kleen wrote:
> >> > True, but there are also many other no-so-useful files under /proc that
> >> > can also be replaced by userspace apps.
> >>
> >> Example?
> >
> >Off the top of my head:
> >
> >/proc/cmdline
>
> Are you kidding?
>
> /proc/cmdlines contains lots of info, it is not only used by the kernel,
> but also used by initramfs (this depends on your distribution).
>
Silly me, I meant /proc/#/cmdline, in the sense that you can get the
command name from the PID in userland.
Davidlohr
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists