search for: show_function2

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

Did you mean: show_function
2008 Oct 31
0
[PATCH][cfq-cgroups] Interface for parameter of cfq driver data
...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 __FUNC(elevator_t *e, char *page) \ +{ \ + struct cfq_data *cfqd = e->elevator_data; \ + struct cfq_driver_data *cfqdd = cfqd->cfqdd; \ + unsigned int __data = __VAR; \ + if (__CONV) \ + __data = jiffies_to_msecs(__data);...