search for: cfq_cgroup_var_store2

Displaying 1 result from an estimated 1 matches for "cfq_cgroup_var_store2".

Did you mean: cfq_cgroup_var_store
2008 Oct 31
0
[PATCH][cfq-cgroups] Interface for parameter of cfq driver data
...lice_async_rq_store, cfq_slice_async_rq, 1, STORE_FUNCTION(cfq_cgroup_ioprio_store, ioprio, 0, CFQ_CGROUP_MAX_IOPRIO, 0); #undef STORE_FUNCTION +static ssize_t +cfq_cgroup_var_show2(unsigned int var, char *page) +{ + return snprintf(page, PAGE_SIZE, "%d\n", var); +} + +static ssize_t +cfq_cgroup_var_store2(unsigned int *var, const char *page, size_t count) +{ + int err; + char *p = (char *) page; + unsigned long new_var; + + err = strict_strtoul(p, 10, &new_var); + if (err) + count = 0; + + *var = new_var; + + return count; +} + +#define SHOW_FUNCTION2(__FUNC, __VAR, __CONV) \ +static ssize_t...