Home
last modified time | relevance | path

Searched refs:config (Results 1 – 25 of 85) sorted by relevance

1234

/systemd-251/src/udev/net/
Dlink-config.c46 static LinkConfig* link_config_free(LinkConfig *config) { in link_config_free() argument
47 if (!config) in link_config_free()
50 free(config->filename); in link_config_free()
52 net_match_clear(&config->match); in link_config_free()
53 condition_free_list(config->conditions); in link_config_free()
55 free(config->description); in link_config_free()
56 free(config->name_policy); in link_config_free()
57 free(config->name); in link_config_free()
58 strv_free(config->alternative_names); in link_config_free()
59 free(config->alternative_names_policy); in link_config_free()
[all …]
/systemd-251/src/boot/efi/
Dboot.c374 static UINTN entry_lookup_key(Config *config, UINTN start, CHAR16 key) { in entry_lookup_key() argument
375 assert(config); in entry_lookup_key()
383 if (i > config->entry_count) in entry_lookup_key()
384 i = config->entry_count; in entry_lookup_key()
389 for (UINTN i = start; i < config->entry_count; i++) in entry_lookup_key()
390 if (config->entries[i]->key == key) in entry_lookup_key()
394 if (config->entries[i]->key == key) in entry_lookup_key()
467 static void print_status(Config *config, CHAR16 *loaded_image_path) { in print_status() argument
473 assert(config); in print_status()
501 switch (config->timeout_sec_config) { in print_status()
[all …]
/systemd-251/src/shared/
Dbootspec.c179 BootConfig *config, in boot_config_load_type1() argument
186 assert(config); in boot_config_load_type1()
192 if (!GREEDY_REALLOC0(config->entries, config->n_entries + 1)) in boot_config_load_type1()
195 r = boot_entry_load_type1(f, root, dir, id, config->entries + config->n_entries); in boot_config_load_type1()
199 config->n_entries++; in boot_config_load_type1()
203 void boot_config_free(BootConfig *config) { in boot_config_free() argument
204 assert(config); in boot_config_free()
206 free(config->default_pattern); in boot_config_free()
207 free(config->timeout); in boot_config_free()
208 free(config->editor); in boot_config_free()
[all …]
Dbootspec.h75 BootEntry* boot_config_find_entry(BootConfig *config, const char *id);
77 static inline const BootEntry* boot_config_default_entry(const BootConfig *config) { in boot_config_default_entry() argument
78 assert(config); in boot_config_default_entry()
80 if (config->default_entry < 0) in boot_config_default_entry()
83 assert((size_t) config->default_entry < config->n_entries); in boot_config_default_entry()
84 return config->entries + config->default_entry; in boot_config_default_entry()
87 void boot_config_free(BootConfig *config);
89 int boot_loader_read_conf(BootConfig *config, FILE *file, const char *path);
92 BootConfig *config,
98 int boot_config_finalize(BootConfig *config);
[all …]
Dloop-util.c402 struct loop_config config; in loop_device_make_internal() local
417 if (ioctl(fd, LOOP_GET_STATUS64, &config.info) >= 0) { in loop_device_make_internal()
422 VALGRIND_MAKE_MEM_DEFINED(&config.info, sizeof(config.info)); in loop_device_make_internal()
424 nr = config.info.lo_number; in loop_device_make_internal()
503 config = (struct loop_config) { in loop_device_make_internal()
543 … r = loop_configure(loop, nr, &config, &try_loop_configure, &seqnum, &timestamp); in loop_device_make_internal()
/systemd-251/src/fuzz/
Dfuzz-bootspec.c13 BootConfig *config = ASSERT_PTR(userdata); in json_dispatch_config() local
22 (void) boot_loader_read_conf(config, f, "memstream"); in json_dispatch_config()
27 BootConfig *config = ASSERT_PTR(userdata); in json_dispatch_entries() local
55 … assert_se(boot_config_load_type1(config, f, "/", "/entries", id) != -ENOMEM); in json_dispatch_entries()
63 BootConfig *config = ASSERT_PTR(userdata); in json_dispatch_loader() local
71 (void) boot_config_augment_from_loader(config, entries, false); in json_dispatch_loader()
84 _cleanup_(boot_config_free) BootConfig config = BOOT_CONFIG_NULL; in LLVMFuzzerTestOneInput()
101 r = json_dispatch(v, data_dispatch, NULL, 0, &config); in LLVMFuzzerTestOneInput()
105 assert_se(boot_config_finalize(&config) >= 0); in LLVMFuzzerTestOneInput()
107 (void) boot_config_select_special_entries(&config); in LLVMFuzzerTestOneInput()
[all …]
Dfuzz-bootspec-gen.py9 config = open(sys.argv[1]).read() variable
16 'config': config,
/systemd-251/src/test/
Dtest-bootspec.c64 _cleanup_(boot_config_free) BootConfig config = BOOT_CONFIG_NULL; in TEST_RET()
77 assert_se(boot_config_load(&config, d, NULL) >= 0); in TEST_RET()
79 assert_se(config.n_entries == 6); in TEST_RET()
82 assert_se(streq(config.entries[0].id, "d.conf")); in TEST_RET()
85 assert_se(streq(config.entries[1].id, "cx.conf")); in TEST_RET()
86 assert_se(streq(config.entries[2].id, "c.conf")); in TEST_RET()
89 assert_se(streq(config.entries[3].id, "b.conf")); in TEST_RET()
90 assert_se(streq(config.entries[4].id, "a-10.conf")); in TEST_RET()
91 assert_se(streq(config.entries[5].id, "a-5.conf")); in TEST_RET()
/systemd-251/src/systemctl/
Dsystemctl-start-special.c21 _cleanup_(boot_config_free) BootConfig config = BOOT_CONFIG_NULL; in load_kexec_kernel()
35 r = boot_config_load_auto(&config, NULL, NULL); in load_kexec_kernel()
46 r = boot_config_select_special_entries(&config); in load_kexec_kernel()
50 e = boot_config_default_entry(&config); in load_kexec_kernel()
/systemd-251/units/
Dsys-kernel-config.mount15 ConditionPathExists=/sys/kernel/config
22 # is fully operational and /sys/kernel/config is created, see issue#17586.
29 Where=/sys/kernel/config
/systemd-251/src/udev/
Dmeson.build44 'net/link-config.c',
45 'net/link-config.h',
94 'link-config-gperf.c',
95 input : 'net/link-config-gperf.gperf',
96 output : 'link-config-gperf.c',
Dudev-builtin-net_id.c234 uint8_t config[64]; in is_pci_multifunction() local
243 if (read(fd, &config, sizeof(config)) != sizeof(config)) in is_pci_multifunction()
247 return config[PCI_HEADER_TYPE] & 0x80; in is_pci_multifunction()
666 char name[256], *ports, *config, *interf, *s; in names_usb() local
695 config = s+1; in names_usb()
697 s = strchr(config, '.'); in names_usb()
712 if (!streq(config, "1")) in names_usb()
713 l = strpcpyl(&s, sizeof(names->usb_ports), "c", config, NULL); in names_usb()
722 … (int) strlen(ports), sysname + (ports - name), config, interf, names->usb_ports); in names_usb()
/systemd-251/.github/workflows/
Dcodeql-analysis.yml11 - .github/codeql-config.yml
49 config-file: ./.github/codeql-config.yml
/systemd-251/shell-completion/zsh/
D_systemd-analyze9 (( $+functions[_systemd-analyze_cat-config] )) ||
10 _systemd-analyze_cat-config() {
54 'cat-config:Cat systemd config files'
93 '--global[Show global user instance config]' \
D_localectl38 if (( $+commands[pkg-config] )); then
41 _xorg_lst=${"$($commands[pkg-config] xkeyboard-config --variable=xkb_base)"}
/systemd-251/modprobe.d/
DREADME7 Use 'systemd-analyze cat-config modprobe.d' to display the effective config.
/systemd-251/sysusers.d/
DREADME8 Use 'systemd-analyze cat-config sysusers.d' to display the effective config.
/systemd-251/sysctl.d/
DREADME8 Use 'systemd-analyze cat-config sysctl.d' to display the effective config.
/systemd-251/src/boot/
Dbootctl.c562 BootConfig *config, in boot_config_load_and_select() argument
575 r = boot_config_load(config, esp_path, same ? NULL : xbootldr_path); in boot_config_load_and_select()
585 (void) boot_config_augment_from_loader(config, efi_entries, /* only_auto= */ false); in boot_config_load_and_select()
587 return boot_config_select_special_entries(config); in boot_config_load_and_select()
591 const BootConfig *config, in status_entries() argument
601 assert(config); in status_entries()
619 if (config->default_entry < 0) in status_entries()
620 … printf("%zu entries, no entry could be determined as default.\n", config->n_entries); in status_entries()
625 boot_config_default_entry(config), in status_entries()
1688 _cleanup_(boot_config_free) BootConfig config = BOOT_CONFIG_NULL; in verb_status()
[all …]
/systemd-251/tmpfiles.d/
DREADME8 Use 'systemd-analyze cat-config tmpfiles.d' to display the effective config.
/systemd-251/rules.d/
DREADME8 Use 'systemd-analyze cat-config udev/rules.d' to display the effective config.
/systemd-251/
D.gitignore7 .config.args
36 # Ignore any mkosi config files with "local" in the name
/systemd-251/hwdb.d/
DREADME11 Use 'systemd-analyze cat-config udev/hwdb.d' to display the effective config.
/systemd-251/src/login/
Dlogind.conf.in13 # Use 'systemd-analyze cat-config systemd/logind.conf' to display the full config.
/systemd-251/src/resolve/
Dresolved.conf.in13 # Use 'systemd-analyze cat-config systemd/resolved.conf' to display the full config.

1234