Re: [RFC][-mm PATCH 1/8] Memory controller resource counters (v3)

2007-07-21 Thread Balbir Singh
Paul Menage wrote: > On 7/20/07, Balbir Singh <[EMAIL PROTECTED]> wrote: >> + >> +ssize_t res_counter_read(struct res_counter *counter, int member, >> + const char __user *userbuf, size_t nbytes, loff_t *pos) >> +{ >> + unsigned long *val; >> + char buf[64], *s; >> + >> +

Re: [RFC][-mm PATCH 1/8] Memory controller resource counters (v3)

2007-07-20 Thread Paul Menage
On 7/20/07, Balbir Singh <[EMAIL PROTECTED]> wrote: + +ssize_t res_counter_read(struct res_counter *counter, int member, + const char __user *userbuf, size_t nbytes, loff_t *pos) +{ + unsigned long *val; + char buf[64], *s; + + s = buf; + val = res_counter_me

[RFC][-mm PATCH 1/8] Memory controller resource counters (v3)

2007-07-20 Thread Balbir Singh
From: Pavel Emelianov <[EMAIL PROTECTED]> Introduce generic structures and routines for resource accounting. Each resource accounting container is supposed to aggregate it, container_subsystem_state and its resource-specific members within. Signed-off-by: Pavel Emelianov <[EMAIL PROTECTED]> Sig