lkml.org 
[lkml]   [2011]   [Sep]   [18]   [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 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.

--
Kirill A. Shutemov


\
 
 \ /
  Last update: 2011-09-18 22:29    [W:1.836 / U:0.028 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site