int i;
struct cgroup_controller *controller;
+ if (!cgroup)
+ return NULL;
+
/*
* Still not sure how to handle the failure here.
*/
int i;
struct control_value *cntl_value;
+ if (!controller)
+ return ECGINVAL;
+
if (controller->index >= CG_VALUE_MAX)
return ECGMAXVALUESEXCEEDED;
unsigned ret;
struct control_value *cntl_value;
+ if (!controller)
+ return ECGINVAL;
+
if (controller->index >= CG_VALUE_MAX)
return ECGMAXVALUESEXCEEDED;
unsigned ret;
struct control_value *cntl_value;
+ if (!controller)
+ return ECGINVAL;
+
if (controller->index >= CG_VALUE_MAX)
return ECGMAXVALUESEXCEEDED;
unsigned ret;
struct control_value *cntl_value;
+ if (!controller)
+ return ECGINVAL;
+
if (controller->index >= CG_VALUE_MAX)
return ECGMAXVALUESEXCEEDED;
int i;
struct cgroup_controller *cgc;
+ if (!cgroup)
+ return NULL;
+
for (i = 0; i < cgroup->index; i++) {
cgc = cgroup->controller[i];
{
int i;
+ if (!controller)
+ return ECGINVAL;
+
for (i = 0; i < controller->index; i++) {
struct control_value *val = controller->values[i];
{
int i;
+ if (!controller)
+ return ECGINVAL;
+
for (i = 0; i < controller->index; i++) {
struct control_value *val = controller->values[i];
if (!strcmp(val->name, name)) {
{
int i;
+ if (!controller)
+ return ECGINVAL;
+
for (i = 0; i < controller->index; i++) {
struct control_value *val = controller->values[i];
int i;
unsigned ret;
+ if (!controller)
+ return ECGINVAL;
+
for (i = 0; i < controller->index; i++) {
struct control_value *val = controller->values[i];
{
int i;
+ if (!controller)
+ return ECGINVAL;
+
for (i = 0; i < controller->index; i++) {
struct control_value *val = controller->values[i];
if (!strcmp(val->name, name)) {
int i;
unsigned ret;
+ if (!controller)
+ return ECGINVAL;
+
for (i = 0; i < controller->index; i++) {
struct control_value *val = controller->values[i];
{
int i;
+ if (!controller)
+ return ECGINVAL;
+
for (i = 0; i < controller->index; i++) {
struct control_value *val = controller->values[i];
int i;
unsigned ret;
+ if (!controller)
+ return ECGINVAL;
+
for (i = 0; i < controller->index; i++) {
struct control_value *val = controller->values[i];