Searched defs:machine (Results 1 - 23 of 23) sorted by relevance

/systemd/src/shared/
H A Darchitecture.c44 const char *machine; member in struct:__anon257
139 if (streq(arch_map[i].machine, u.machine))
H A Dbus-util.h130 const char *machine; member in struct:UnitInfo
H A Dlogs-show.c1139 static int get_boot_id_for_machine(const char *machine, sd_id128_t *boot_id) { argument
1148 assert(machine);
1151 if (!machine_name_is_valid(machine))
1154 r = container_get_leader(machine, &pid);
1212 int add_match_this_boot(sd_journal *j, const char *machine) { argument
1219 if (machine) {
1220 r = get_boot_id_for_machine(machine, &boot_id);
1222 return log_error_errno(r, "Failed to get boot id of container %s: %m", machine);
/systemd/src/journal/
H A Djournal-qrcode.c53 sd_id128_t machine) {
76 fprintf(f, "/%"PRIx64"-%"PRIx64"?machine=" SD_ID128_FORMAT_STR,
79 SD_ID128_FORMAT_VAL(machine));
46 print_qr_code( FILE *output, const void *seed, size_t seed_size, uint64_t start, uint64_t interval, const char *hn, sd_id128_t machine) argument
H A Djournal-authenticate.c324 sd_id128_t machine; local
331 r = sd_id128_get_machine(&machine);
336 SD_ID128_FORMAT_VAL(machine)) < 0)
391 if (!sd_id128_equal(machine, m->machine_id)) {
H A Djournald-server.c274 sd_id128_t machine; local
289 r = sd_id128_get_machine(&machine);
298 SD_ID128_FORMAT_VAL(machine), uid) < 0)
494 -EHOSTDOWN Other machine
505 log_info("%s: Journal file from other machine, rotating.", f->path);
987 /* If in auto mode: first try to create the machine
991 * the machine path */
1055 sd_id128_t machine; local
1080 r = sd_id128_get_machine(&machine);
H A Djournalctl.c288 " -M --machine=CONTAINER Operate on local container\n"
430 { "machine", required_argument, NULL, 'M' },
838 log_error("Please specify either -D/--directory= or --file= or -M/--machine=, not more than one.");
1502 sd_id128_t machine, boot; local
1518 r = sd_id128_get_machine(&machine);
1520 return log_error_errno(r, "Failed to get machine ID: %m");
1527 SD_ID128_FORMAT_VAL(machine)) < 0)
1543 SD_ID128_FORMAT_VAL(machine)) < 0) {
1596 h.machine_id = machine;
1655 fprintf(stderr, "\nThe keys have been generated for host %s/" SD_ID128_FORMAT_STR ".\n", hn, SD_ID128_FORMAT_VAL(machine));
[all...]
H A Dsd-journal.c1352 sd_id128_t id, machine; local
1355 r = sd_id128_get_machine(&machine);
1363 return sd_id128_equal(id, machine);
1680 _public_ int sd_journal_open_container(sd_journal **ret, const char *machine, int flags) { argument
1686 assert_return(machine, -EINVAL);
1689 assert_return(machine_name_is_valid(machine), -EINVAL);
1691 p = strjoina("/run/systemd/machines/", machine);
2012 /* We can't read objects larger than 4G on a 32bit machine */
/systemd/src/machine/
H A Dmachined.c35 #include "machine-image.h"
68 Machine *machine; local
73 while ((machine = hashmap_first(m->machines)))
74 machine_free(machine);
106 return log_error_errno(r, "Failed to get machine ID: %m");
145 /* Read in machine data stored on disk */
155 struct Machine *machine; local
161 /* Ignore symlinks that map the unit name to the machine */
168 k = manager_add_machine(m, de->d_name, &machine);
170 r = log_error_errno(k, "Failed to add machine b
288 Machine *machine; local
312 Machine *machine; local
[all...]
H A Dmachine.h55 Machine *machine; member in struct:MachineOperation
H A Dmachine-dbus.c43 #include "machine-dbus.h"
44 #include "machine.h"
544 if (asprintf(&address, "x-machine-kernel:pid=%1$" PID_PRI ";x-machine-unix:pid=%1$" PID_PRI, m->leader) < 0)
1270 o->machine = m;
1303 Machine *machine; local
1312 if (streq(path, "/org/freedesktop/machine1/machine/self")) {
1329 r = manager_get_machine_by_pid(m, pid, &machine);
1336 p = startswith(path, "/org/freedesktop/machine1/machine/");
1344 machine
1367 Machine *machine = NULL; local
[all...]
H A Dmachined-dbus.c36 #include "machine-dbus.h"
37 #include "machine-image.h"
38 #include "machine-pool.h"
137 Machine *machine; local
148 machine = hashmap_get(m->machines, name);
149 if (!machine)
150 return sd_bus_error_setf(error, BUS_ERROR_NO_SUCH_MACHINE, "No machine '%s' known", name);
152 p = machine_bus_path(machine);
188 Machine *machine = NULL; local
216 r = manager_get_machine_by_pid(m, pid, &machine);
232 Machine *machine; local
477 Machine *machine; local
497 Machine *machine; local
517 Machine *machine; local
537 Machine *machine; local
610 Machine *machine; local
630 Machine *machine; local
650 Machine *machine; local
671 Machine *machine; local
691 Machine *machine; local
885 Machine *machine; local
938 Machine *machine; local
1003 Machine *machine; local
1056 Machine *machine; local
1159 Machine *machine; local
1202 Machine *machine; local
1231 Machine *machine; local
1253 Machine *machine; local
1511 manager_get_machine_by_pid(Manager *m, pid_t pid, Machine **machine) argument
1535 Machine *machine; local
[all...]
H A Dmachinectl.c734 log_error("Could not get path to machine: %s", bus_error_message(&error, -r));
1027 log_error("Could not kill machine: %s", bus_error_message(&error, -r));
1069 log_error("Could not terminate machine: %s", bus_error_message(&error, -r));
1189 log_info("Connected to machine %s. Press ^] three times within 1s to exit session.", name);
1218 log_info("Connection to machine %s terminated.", name);
1232 const char *pty, *match, *machine; local
1257 machine = argc < 2 || isempty(argv[1]) ? ".host" : argv[1];
1264 "arg0='", machine, "'");
1268 return log_error_errno(r, "Failed to add machine removal match: %m");
1278 "s", machine);
1299 const char *pty, *match, *machine, *path, *uid = NULL; local
[all...]
/systemd/src/nss-mymachines/
H A Dnss-mymachines.c407 const char *p, *e, *machine; local
433 machine = strndupa(p, e - p);
434 if (!machine_name_is_valid(machine))
449 machine, (uint32_t) uid);
502 const char *machine, *object; local
537 r = sd_bus_message_read(reply, "sou", &machine, &object, &mapped);
544 if (snprintf(buffer, buflen, "vu-%s-" UID_FMT, machine, (uid_t) mapped) >= (int) buflen) {
578 const char *p, *e, *machine; local
604 machine = strndupa(p, e - p);
605 if (!machine_name_is_valid(machine))
670 const char *machine, *object; local
[all...]
/systemd/src/test/
H A Dtest-cgroup-util.c188 _cleanup_free_ char *path = NULL, *path_shifted = NULL, *session = NULL, *unit = NULL, *user_unit = NULL, *machine = NULL, *slice = NULL; local
209 cg_pid_get_machine_name(pid, &machine);
220 machine,
/systemd/src/basic/
H A Dutil.c615 int container_get_leader(const char *machine, pid_t *pid) { argument
621 assert(machine);
624 if (!machine_name_is_valid(machine))
627 p = strjoina("/run/systemd/machines/", machine);
H A Dcgroup-util.c1474 int cg_path_get_machine_name(const char *path, char **machine) { argument
1484 return readlink_malloc(sl, machine);
1487 int cg_pid_get_machine_name(pid_t pid, char **machine) { argument
1491 assert(machine);
1497 return cg_path_get_machine_name(cgroup, machine);
/systemd/src/boot/
H A Dbootctl.c882 char *machine = NULL; local
885 f = fopen("/etc/machine-id", "re");
896 machine = line;
899 if (!machine)
906 fprintf(g, "default %s-*\n", machine);
/systemd/src/libsystemd/sd-bus/
H A Dbus-control.c1543 _public_ int sd_bus_get_name_machine_id(sd_bus *bus, const char *name, sd_id128_t *machine) { argument
1550 assert_return(machine, -EINVAL);
1561 return sd_id128_get_machine(machine);
1585 return sd_id128_from_string(mid, machine);
H A Dbus-internal.h245 char *machine; member in struct:sd_bus
387 int bus_set_address_system_machine(sd_bus *b, const char *machine);
H A Dsd-bus.c142 free(b->machine);
789 _cleanup_free_ char *machine = NULL, *pid = NULL; local
804 r = parse_address_key(p, "machine", &machine);
819 if (!machine == !pid)
822 if (machine) {
823 if (!machine_name_is_valid(machine))
826 free(b->machine);
827 b->machine = machine;
848 _cleanup_free_ char *machine = NULL, *pid = NULL; local
1382 bus_set_address_system_machine(sd_bus *b, const char *machine) argument
1399 sd_bus_open_system_machine(sd_bus **ret, const char *machine) argument
[all...]
/systemd/src/libsystemd/sd-login/
H A Dsd-login.c54 * machine, session does not exist → -ENXIO
196 _public_ int sd_peer_get_machine_name(int fd, char **machine) { argument
201 assert_return(machine, -EINVAL);
207 return cg_pid_get_machine_name(ucred.pid, machine);
883 _public_ int sd_machine_get_class(const char *machine, char **class) { argument
888 assert_return(machine_name_is_valid(machine), -EINVAL);
891 p = strjoina("/run/systemd/machines/", machine);
906 _public_ int sd_machine_get_ifindices(const char *machine, int **ifindices) { argument
913 assert_return(machine_name_is_valid(machine), -EINVAL);
916 p = strjoina("/run/systemd/machines/", machine);
[all...]
/systemd/src/systemctl/
H A Dsystemctl.c309 /* First, order by machine */
310 if (!u->machine && v->machine)
312 if (u->machine && !v->machine)
314 if (u->machine && v->machine) {
315 r = strcasecmp(u->machine, v->machine);
374 max_id_len = MAX(max_id_len, strlen(u->id) + (u->machine
523 get_unit_list( sd_bus *bus, const char *machine, char **patterns, UnitInfo **unit_infos, int c, sd_bus_message **_reply) argument
770 const char *machine; member in struct:socket_info
1027 const char* machine; member in struct:timer_info
[all...]

Completed in 109 milliseconds