Lines Matching defs:weight
53 r = sd_bus_message_append(reply, "(st)", w->path, w->weight);
300 uint64_t weight;
302 r = sd_bus_message_read(message, "t", &weight);
306 if (!CGROUP_BLKIO_WEIGHT_IS_OK(weight))
310 c->blockio_weight = weight;
313 if (weight == CGROUP_BLKIO_WEIGHT_INVALID)
316 unit_write_drop_in_private_format(u, mode, name, "BlockIOWeight=%" PRIu64, weight);
322 uint64_t weight;
324 r = sd_bus_message_read(message, "t", &weight);
328 if (CGROUP_BLKIO_WEIGHT_IS_OK(weight))
332 c->startup_blockio_weight = weight;
335 if (weight == CGROUP_BLKIO_WEIGHT_INVALID)
338 unit_write_drop_in_private_format(u, mode, name, "StartupBlockIOWeight=%" PRIu64, weight);
435 uint64_t weight;
442 while ((r = sd_bus_message_read(message, "(st)", &path, &weight)) > 0) {
444 if (!CGROUP_BLKIO_WEIGHT_IS_OK(weight) || weight == CGROUP_BLKIO_WEIGHT_INVALID)
470 a->weight = weight;
499 fprintf(f, "BlockIODeviceWeight=%s %" PRIu64 "\n", a->path, a->weight);