lkml.org 
[lkml]   [2011]   [Sep]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 09/11] cgroups: Add a task counter subsystem
On Sun, Sep 18, 2011 at 11:27:10PM +0300, Kirill A. Shutemov wrote:
> On Tue, Sep 13, 2011 at 01:11:29AM +0200, Frederic Weisbecker wrote:
> > +static struct cftype files[] = {
> > + {
> > + .name = "limit",
> > + .read_u64 = task_counter_read_u64,
> > + .write_u64 = task_counter_write_u64,
> > + .private = RES_LIMIT,
> > + },
> > +
> > + {
> > + .name = "usage",
> > + .read_u64 = task_counter_read_u64,
>
> It would be nice to implement .register_event/.unregister_event as well.

It adds several complications. I prefer to wait for someone requesting
that feature before doing it.


\
 
 \ /
  Last update: 2011-09-30 14:57    [W:0.068 / U:0.300 seconds]
©2003-2014 Jasper Spaans. Advertise on this site