Lines Matching refs:v
90 _cleanup_(json_variant_unrefp) JsonVariant *arr = NULL, *v = NULL; in manager_varlink_send_managed_oom_update()
132 r = json_build(&v, JSON_BUILD_OBJECT(JSON_BUILD_PAIR("cgroups", JSON_BUILD_VARIANT(arr)))); in manager_varlink_send_managed_oom_update()
139 r = varlink_notify(u->manager->managed_oom_varlink, v); in manager_varlink_send_managed_oom_update()
143 … r = varlink_send(u->manager->managed_oom_varlink, "io.systemd.oom.ReportManagedOOMCGroups", v); in manager_varlink_send_managed_oom_update()
150 _cleanup_(json_variant_unrefp) JsonVariant *v = NULL, *arr = NULL; in build_managed_oom_cgroups_json()
190 r = json_build(&v, JSON_BUILD_OBJECT(JSON_BUILD_PAIR("cgroups", JSON_BUILD_VARIANT(arr)))); in build_managed_oom_cgroups_json()
194 *ret = TAKE_PTR(v); in build_managed_oom_cgroups_json()
204 _cleanup_(json_variant_unrefp) JsonVariant *v = NULL; in vl_method_subscribe_managed_oom_cgroups()
219 r = build_managed_oom_cgroups_json(m, &v); in vl_method_subscribe_managed_oom_cgroups()
224 return varlink_reply(link, v); in vl_method_subscribe_managed_oom_cgroups()
228 return varlink_notify(m->managed_oom_varlink, v); in vl_method_subscribe_managed_oom_cgroups()
232 _cleanup_(json_variant_unrefp) JsonVariant *v = NULL; in manager_varlink_send_managed_oom_initial()
242 r = build_managed_oom_cgroups_json(m, &v); in manager_varlink_send_managed_oom_initial()
246 return varlink_send(m->managed_oom_varlink, "io.systemd.oom.ReportManagedOOMCGroups", v); in manager_varlink_send_managed_oom_initial()
258 _cleanup_(json_variant_unrefp) JsonVariant *v = NULL; in vl_method_get_user_record()
295 if (v) { in vl_method_get_user_record()
296 r = varlink_notify(link, v); in vl_method_get_user_record()
300 v = json_variant_unref(v); in vl_method_get_user_record()
303 r = build_user_json(d->name, uid, &v); in vl_method_get_user_record()
308 if (!v) in vl_method_get_user_record()
311 return varlink_reply(link, v); in vl_method_get_user_record()
324 r = build_user_json(un, uid, &v); in vl_method_get_user_record()
328 return varlink_reply(link, v); in vl_method_get_user_record()
366 _cleanup_(json_variant_unrefp) JsonVariant *v = NULL; in vl_method_get_group_record()
405 if (v) { in vl_method_get_group_record()
406 r = varlink_notify(link, v); in vl_method_get_group_record()
410 v = json_variant_unref(v); in vl_method_get_group_record()
413 r = build_group_json(d->name, (gid_t) uid, &v); in vl_method_get_group_record()
418 if (!v) in vl_method_get_group_record()
421 return varlink_reply(link, v); in vl_method_get_group_record()
434 r = build_group_json(gn, gid, &v); in vl_method_get_group_record()
438 return varlink_reply(link, v); in vl_method_get_group_record()