Lines Matching refs:err

59         err = write_file(
61 if err is not None:
62 return err
63 err = write_file(
65 if err is not None:
66 return err
67 err = write_file(os.path.join(self.sysfs_dir(), 'nr_accesses', 'min'),
69 if err is not None:
70 return err
71 err = write_file(os.path.join(self.sysfs_dir(), 'nr_accesses', 'max'),
73 if err is not None:
74 return err
75 err = write_file(
77 if err is not None:
78 return err
79 err = write_file(
81 if err is not None:
82 return err
105 err = write_file(os.path.join(self.sysfs_dir(), 'target_metric'),
107 if err is not None:
108 return err
109 err = write_file(os.path.join(self.sysfs_dir(), 'target_value'),
111 if err is not None:
112 return err
113 err = write_file(os.path.join(self.sysfs_dir(), 'current_value'),
115 if err is not None:
116 return err
139 err = write_file(os.path.join(self.sysfs_dir(), 'bytes'), self.sz)
140 if err is not None:
141 return err
142 err = write_file(os.path.join(self.sysfs_dir(), 'ms'), self.ms)
143 if err is not None:
144 return err
145 err = write_file(os.path.join(self.sysfs_dir(), 'reset_interval_ms'),
147 if err is not None:
148 return err
151 content, err = read_file(nr_goals_file)
152 if err is not None:
153 return err
155 err = write_file(nr_goals_file, len(self.goals))
156 if err is not None:
157 return err
159 err = goal.stage()
160 if err is not None:
161 return err
211 err = write_file(os.path.join(self.sysfs_dir(), 'action'), self.action)
212 if err is not None:
213 return err
214 err = self.access_pattern.stage()
215 if err is not None:
216 return err
217 err = write_file(os.path.join(self.sysfs_dir(), 'apply_interval_us'),
219 if err is not None:
220 return err
222 err = self.quota.stage()
223 if err is not None:
224 return err
227 err = write_file(
229 if err is not None:
230 return err
233 err = write_file(
235 if err is not None:
236 return err
252 err = write_file(
254 if err is not None:
255 return err
284 err = write_file(os.path.join(self.interval_sysfs_dir(), 'sample_us'),
286 if err is not None:
287 return err
288 err = write_file(os.path.join(self.interval_sysfs_dir(), 'aggr_us'),
290 if err is not None:
291 return err
292 err = write_file(os.path.join(self.interval_sysfs_dir(), 'update_us'),
294 if err is not None:
295 return err
297 err = write_file(
300 if err is not None:
301 return err
303 err = write_file(
306 if err is not None:
307 return err
338 err = write_file(
340 if err is not None:
341 return err
342 err = self.monitoring_attrs.stage()
343 if err is not None:
344 return err
348 content, err = read_file(nr_targets_file)
349 if err is not None:
350 return err
352 err = write_file(nr_targets_file, '%d' % len(self.targets))
353 if err is not None:
354 return err
356 err = target.stage()
357 if err is not None:
358 return err
362 content, err = read_file(nr_schemes_file)
363 if err is not None:
364 return err
366 err = write_file(nr_schemes_file, '%d' % len(self.schemes))
367 if err is not None:
368 return err
370 err = scheme.stage()
371 if err is not None:
372 return err
394 content, err = read_file(nr_contexts_file)
395 if err is not None:
396 return err
398 err = write_file(nr_contexts_file, '%d' % len(self.contexts))
399 if err is not None:
400 return err
403 err = context.stage()
404 if err is not None:
405 return err
406 err = write_file(os.path.join(self.sysfs_dir(), 'state'), 'on')
407 return err
410 err = write_file(os.path.join(self.sysfs_dir(), 'state'), 'off')
411 return err
414 err = write_file(os.path.join(self.sysfs_dir(), 'state'),
416 if err is not None:
417 return err
430 content, err = read_file(
432 if err is not None:
433 return err
439 err = write_file(os.path.join(self.sysfs_dir(), 'state'),
441 if err is not None:
442 return err
445 content, err = read_file(os.path.join(scheme.sysfs_dir(),
447 if err is not None:
448 return err
452 err = write_file(os.path.join(self.sysfs_dir(), 'state'),
454 if err is not None:
455 return err
461 content, err = read_file(
463 if err is not None:
464 return err
469 err = write_file(os.path.join(self.sysfs_dir(), 'state'),
471 if err is not None:
472 return err
476 content, err = read_file(
479 if err is not None:
480 return err
487 content, err = read_file(nr_contexts_file)
488 if err is not None:
489 return err
491 err = write_file(nr_contexts_file, '%d' % len(self.contexts))
492 if err is not None:
493 return err
496 err = context.stage()
497 if err is not None:
498 return err
499 err = write_file(os.path.join(self.sysfs_dir(), 'state'), 'commit')
500 return err
507 err = goal.stage()
508 if err is not None:
510 err)
528 err = write_file(os.path.join(self.sysfs_dir(), 'nr_kdamonds'),
530 if err is not None:
531 return err
533 err = kdamond.start()
534 if err is not None:
535 return err
540 err = kdamond.stop()
541 if err is not None:
542 return err