[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <6599ad830701120010u11f24bfdxeb3e8bfbd8bdba40@mail.gmail.com>
Date: Fri, 12 Jan 2007 00:10:32 -0800
From: "Paul Menage" <menage@...gle.com>
To: balbir@...ibm.com
Cc: vatsa@...ibm.com, sekharan@...ibm.com,
ckrm-tech@...ts.sourceforge.net, linux-kernel@...r.kernel.org,
xemul@...ru, dev@...ru, containers@...ts.osdl.org, pj@....com,
mbligh@...gle.com, winget@...gle.com, rohitseth@...gle.com,
serue@...ibm.com, devel@...nvz.org
Subject: Re: [ckrm-tech] [PATCH 3/6] containers: Add generic multi-subsystem API to containers
On 1/11/07, Balbir Singh <balbir@...ibm.com> wrote:
> to 0. To walk the hierarchy, I have no root now since I do not have
> any task context. I was wondering if exporting the rootnode or providing
> a function to export the rootnode of the mounter hierarchy will make
> programming easier.
Ah - I misunderstood what you were looking for before.
>
> Something like
>
> struct container *get_root_container(struct container_subsys *ss)
> {
> return &rootnode[ss->hierarchy];
> }
Yes, something like that sounds fine - except that it would be
return &rootnode[ss->hierarchy].top_container;
Paul
-
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