/systemd/src/udev/ |
H A D | udev-builtin-net_setup_link.c | 25 static link_config_ctx *ctx = NULL; variable 38 r = link_get_driver(ctx, dev, &driver); 42 r = link_config_get(ctx, dev, &link); 53 r = link_config_apply(ctx, link, dev, &name); 70 if (ctx) 73 r = link_config_ctx_new(&ctx); 77 r = link_config_load(ctx); 86 link_config_ctx_free(ctx); 87 ctx = NULL; 93 if (!ctx) [all...] |
H A D | udev-builtin-kmod.c | 30 static struct kmod_ctx *ctx = NULL; variable in typeref:struct:kmod_ctx 37 err = kmod_module_new_from_lookup(ctx, alias, &list); 70 if (!ctx) 88 if (ctx) 91 ctx = kmod_new(NULL, NULL); 92 if (!ctx) 96 kmod_set_log_fn(ctx, udev_kmod_log, udev); 97 kmod_load_resources(ctx); 104 ctx = kmod_unref(ctx); [all...] |
/systemd/src/udev/net/ |
H A D | link-config.c | 94 static void link_configs_free(link_config_ctx *ctx) { argument 97 if (!ctx) 100 LIST_FOREACH_SAFE(links, link, link_next, ctx->links) 104 void link_config_ctx_free(link_config_ctx *ctx) { argument 105 if (!ctx) 108 safe_close(ctx->ethtool_fd); 110 sd_netlink_unref(ctx->rtnl); 112 link_configs_free(ctx); 114 free(ctx); 122 _cleanup_(link_config_ctx_freep) link_config_ctx *ctx 143 load_link(link_config_ctx *ctx, const char *filename) argument 211 link_config_load(link_config_ctx *ctx) argument 239 link_config_should_reload(link_config_ctx *ctx) argument 243 link_config_get(link_config_ctx *ctx, struct udev_device *device, link_config **ret) argument 372 link_config_apply(link_config_ctx *ctx, link_config *config, struct udev_device *device, const char **name) argument 481 link_get_driver(link_config_ctx *ctx, struct udev_device *device, char **ret) argument [all...] |
H A D | link-config.h | 78 void link_config_ctx_free(link_config_ctx *ctx); 80 int link_config_load(link_config_ctx *ctx); 81 bool link_config_should_reload(link_config_ctx *ctx); 83 int link_config_get(link_config_ctx *ctx, struct udev_device *device, struct link_config **ret); 84 int link_config_apply(link_config_ctx *ctx, struct link_config *config, struct udev_device *device, const char **name); 86 int link_get_driver(link_config_ctx *ctx, struct udev_device *device, char **ret);
|
/systemd/src/core/ |
H A D | kmod-setup.c | 75 struct kmod_ctx *ctx = NULL; local 96 if (!ctx) { 97 ctx = kmod_new(NULL, NULL); 98 if (!ctx) 101 kmod_set_log_fn(ctx, systemd_kmod_log, NULL); 102 kmod_load_resources(ctx); 105 r = kmod_module_new_from_name(ctx, kmod_table[i].module, &mod); 126 if (ctx) 127 kmod_unref(ctx);
|
/systemd/src/modules-load/ |
H A D | modules-load.c | 74 static int load_module(struct kmod_ctx *ctx, const char *m) { argument 81 r = kmod_module_new_from_lookup(ctx, m, &modlist); 128 static int apply_file(struct kmod_ctx *ctx, const char *path, bool ignore_enoent) { argument 132 assert(ctx); 161 k = load_module(ctx, l); 217 struct kmod_ctx *ctx; local 233 ctx = kmod_new(NULL, NULL); 234 if (!ctx) { 239 kmod_load_resources(ctx); 240 kmod_set_log_fn(ctx, systemd_kmod_lo [all...] |
/systemd/src/test/ |
H A D | test-netlink-manual.c | 32 struct kmod_ctx *ctx; local 36 ctx = kmod_new(NULL, NULL); 37 if (!ctx) { 38 kmod_unref(ctx); 42 r = kmod_module_new_from_lookup(ctx, mod_name, &list); 59 kmod_unref(ctx);
|
/systemd/src/journal/ |
H A D | compress.c | 449 _cleanup_(LZ4F_freeCompressionContextp) LZ4F_compressionContext_t ctx = NULL; 462 c = LZ4F_createCompressionContext(&ctx, LZ4F_VERSION); 475 n = offset = total_out = LZ4F_compressBegin(ctx, buf, size, &preferences); 489 n = LZ4F_compressUpdate(ctx, buf + offset, size - offset, 515 n = LZ4F_compressEnd(ctx, buf + offset, size - offset, &options); 616 _cleanup_(LZ4F_freeDecompressionContextp) LZ4F_decompressionContext_t ctx = NULL; 623 c = LZ4F_createDecompressionContext(&ctx, LZ4F_VERSION); 642 c = LZ4F_decompress(ctx, buf, &produced, src + total_in, &used, NULL);
|
/systemd/src/locale/ |
H A D | localed.c | 1105 static void log_xkb(struct xkb_context *ctx, enum xkb_log_level lvl, const char *format, va_list args) { argument 1119 struct xkb_context *ctx = NULL; local 1125 ctx = xkb_context_new(XKB_CONTEXT_NO_ENVIRONMENT_NAMES); 1126 if (!ctx) { 1131 xkb_context_set_log_fn(ctx, log_xkb); 1133 km = xkb_keymap_new_from_names(ctx, &rmlvo, XKB_KEYMAP_COMPILE_NO_FLAGS); 1143 xkb_context_unref(ctx);
|