Searched refs:class (Results 1 - 25 of 40) sorted by relevance

12

/systemd/src/basic/
H A Dioprio.h11 * Gives us 8 prio classes with 13-bits of data for each class
19 #define IOPRIO_PRIO_VALUE(class, data) (((class) << IOPRIO_CLASS_SHIFT) | data)
25 * class, it always gets premium service. BE is the best-effort scheduling
26 * class, the default for any process. IDLE is the idle scheduling class, it
/systemd/hwdb/
H A Dids-update.pl42 my $class;
57 $class = uc $1;
58 if ($class =~ m/^00$/) {
63 print(OUT "usb:v*p*d*dc" . $class . "*\n");
68 if (not defined $class) {
85 print(OUT "usb:v*p*d*dc" . $class . "dsc" . $subclass . "*\n");
98 print(OUT "usb:v*p*d*dc" . $class . "dsc" . $subclass . "dp" . $protocol . "*\n");
159 my $class;
174 $class = uc $1;
177 print(OUT "pci:v*d*sv*sd*bc" . $class
[all...]
/systemd/src/resolve/
H A Ddns-type.c78 bool dns_class_is_pseudo(uint16_t class) { argument
79 return class == DNS_TYPE_ANY;
110 bool dns_class_is_valid_rr(uint16_t class) { argument
111 return class != DNS_CLASS_ANY;
213 const char *dns_class_to_string(uint16_t class) { argument
215 switch (class) {
H A Ddns-type.h137 bool dns_class_is_pseudo(uint16_t class);
138 bool dns_class_is_valid_rr(uint16_t class);
H A Dresolved-dns-rr.h83 uint16_t class, type;
94 .class = c, \
286 DnsResourceKey* dns_resource_key_new(uint16_t class, uint16_t type, const char *name);
289 DnsResourceKey* dns_resource_key_new_consume(uint16_t class, uint16_t type, char *name);
307 DnsResourceRecord* dns_resource_record_new_full(uint16_t class, uint16_t type, const char *name);
H A Dresolved-dns-rr.c34 DnsResourceKey* dns_resource_key_new(uint16_t class, uint16_t type, const char *name) { argument
46 k->class = class;
63 return dns_resource_key_new(key->class, key->type, cname->cname.name);
74 k = dns_resource_key_new_consume(key->class, key->type, destination);
102 new_key = dns_resource_key_new_consume(key->class, key->type, joined);
112 DnsResourceKey* dns_resource_key_new_consume(uint16_t class, uint16_t type, char *name) { argument
122 k->class = class;
165 return key->class
392 dns_resource_record_new_full(uint16_t class, uint16_t type, const char *name) argument
[all...]
H A Dresolve-tool.c331 static int resolve_record(sd_bus *bus, const char *name, uint16_t class, uint16_t type) { argument
345 log_debug("Resolving %s %s %s (interface %s).", name, dns_class_to_string(class), dns_type_to_string(type), isempty(ifname) ? "*" : ifname);
357 r = sd_bus_message_append(req, "isqqt", arg_ifindex, name, class, type, arg_flags);
445 uint16_t type = 0, class = 0; local
481 f = startswith_no_case(q, "class=");
486 if (class != 0) {
487 log_error("DNS class specified twice.");
498 log_error("Unknown DNS class %s.", t);
502 class = r;
553 if (class
[all...]
H A Dresolved-dns-transaction.c170 /* We only support the IN class */
171 if (key->class != DNS_CLASS_IN && key->class != DNS_CLASS_ANY)
1860 dnskey = dns_resource_key_new(rr->key->class, DNS_TYPE_DNSKEY, rr->rrsig.signer);
1888 ds = dns_resource_key_new(rr->key->class, DNS_TYPE_DS, DNS_RESOURCE_KEY_NAME(rr->key));
1923 ds = dns_resource_key_new(rr->key->class, DNS_TYPE_DS, DNS_RESOURCE_KEY_NAME(rr->key));
1976 soa = dns_resource_key_new(rr->key->class, DNS_TYPE_SOA, name);
2010 soa = dns_resource_key_new(rr->key->class, DNS_TYPE_SOA, DNS_RESOURCE_KEY_NAME(rr->key));
2054 soa = dns_resource_key_new(t->key->class, DNS_TYPE_SOA, name);
2142 if (dt->key->class !
[all...]
H A Dresolved-dns-cache.c387 if (dns_class_is_pseudo(rr->key->class))
487 if (dns_class_is_pseudo(key->class))
527 i->key = dns_resource_key_new(key->class, DNS_TYPE_ANY, DNS_RESOURCE_KEY_NAME(key));
766 i = hashmap_get(c->by_key, &DNS_RESOURCE_KEY_CONST(k->class, DNS_TYPE_ANY, n));
772 i = hashmap_get(c->by_key, &DNS_RESOURCE_KEY_CONST(k->class, DNS_TYPE_CNAME, n));
781 i = hashmap_get(c->by_key, &DNS_RESOURCE_KEY_CONST(k->class, DNS_TYPE_DNAME, n));
794 i = hashmap_get(c->by_key, &DNS_RESOURCE_KEY_CONST(k->class, DNS_TYPE_NSEC, n));
818 key->class == DNS_CLASS_ANY) {
H A Dresolved-dns-trust-anchor.c192 _cleanup_free_ char *domain = NULL, *class = NULL, *type = NULL; local
210 r = extract_many_words(&p, NULL, 0, &class, &type, NULL);
212 return log_warning_errno(r, "Unable to parse class and type in line %s:%u: %m", path, line);
214 log_warning("Missing class or type in line %s:%u", path, line);
218 if (!strcaseeq(class, "IN")) {
219 log_warning("RR class %s is not supported, ignoring line %s:%u.", class, path, line);
654 a = hashmap_get(d->positive_by_key, &DNS_RESOURCE_KEY_CONST(revoked_dnskey->key->class, DNS_TYPE_DS, DNS_RESOURCE_KEY_NAME(revoked_dnskey->key)));
H A Dresolved-dns-zone.c172 t = dns_scope_find_transaction(i->scope, &DNS_RESOURCE_KEY_CONST(i->rr->key->class, DNS_TYPE_ANY, DNS_RESOURCE_KEY_NAME(i->rr->key)), false);
176 key = dns_resource_key_new(i->rr->key->class, DNS_TYPE_ANY, DNS_RESOURCE_KEY_NAME(i->rr->key));
224 if (dns_class_is_pseudo(rr->key->class))
298 if (key->type == DNS_TYPE_ANY || key->class == DNS_CLASS_ANY) {
369 if (key->type == DNS_TYPE_ANY || key->class == DNS_CLASS_ANY) {
/systemd/src/machine/
H A Dmachine.c46 Machine* machine_new(Manager *manager, MachineClass class, const char *name) { argument
50 assert(class < _MACHINE_CLASS_MAX);
53 /* Passing class == _MACHINE_CLASS_INVALID here is fine. It
65 if (class != MACHINE_HOST) {
71 m->class = class;
190 if (m->class != _MACHINE_CLASS_INVALID)
191 fprintf(f, "CLASS=%s\n", machine_class_to_string(m->class));
261 _cleanup_free_ char *realtime = NULL, *monotonic = NULL, *id = NULL, *leader = NULL, *class = NULL, *netif = NULL; local
276 "CLASS", &class,
[all...]
H A Dmachine.h69 MachineClass class;
97 Machine* machine_new(Manager *manager, MachineClass class, const char *name);
H A Dmachined-dbus.c256 strempty(machine_class_to_string(machine->class)),
271 const char *name, *service, *class, *root_directory; local
301 r = sd_bus_message_read(message, "ssus", &service, &class, &leader, &root_directory);
320 if (isempty(class))
323 c = machine_class_from_string(class);
325 return sd_bus_error_setf(error, SD_BUS_ERROR_INVALID_ARGS, "Invalid machine class parameter");
356 m->class = c;
900 if (machine->class != MACHINE_CONTAINER)
955 if (machine->class != MACHINE_CONTAINER)
1018 if (machine->class !
[all...]
H A Dmachine-dbus.c208 switch (m->class) {
385 switch (m->class) {
494 m->class == MACHINE_HOST ? "org.freedesktop.machine1.host-open-pty" : "org.freedesktop.machine1.open-pty",
530 switch (m->class) {
586 m->class == MACHINE_HOST ? "org.freedesktop.machine1.host-login" : "org.freedesktop.machine1.login",
685 m->class == MACHINE_HOST ? "org.freedesktop.machine1.host-shell" : "org.freedesktop.machine1.shell",
880 if (m->class != MACHINE_CONTAINER)
1143 if (m->class != MACHINE_CONTAINER)
1284 SD_BUS_PROPERTY("Class", "s", property_get_class, offsetof(Machine, class), SD_BUS_VTABLE_PROPERTY_CONST),
/systemd/src/login/
H A Dpam_systemd.c52 const char **class,
62 if (startswith(argv[i], "class=")) {
63 if (class)
64 *class = argv[i] + 6;
229 *type = NULL, *class = NULL, local
307 class = pam_getenv(handle, "XDG_SESSION_CLASS");
308 if (isempty(class))
309 class = getenv("XDG_SESSION_CLASS");
310 if (isempty(class))
311 class
49 parse_argv( pam_handle_t *handle, int argc, const char **argv, const char **class, const char **type, bool *debug) argument
[all...]
H A Dlogind-session.c200 if (s->class >= 0)
201 fprintf(f, "CLASS=%s\n", session_class_to_string(s->class));
320 *class = NULL, local
347 "CLASS", &class,
424 if (class) {
427 c = session_class_from_string(class);
429 s->class = c;
574 log_struct(s->class == SESSION_BACKGROUND ? LOG_DEBUG : LOG_INFO,
679 log_struct(s->class == SESSION_BACKGROUND ? LOG_DEBUG : LOG_INFO,
H A Dlogind-user.c765 return (s->class == SESSION_USER && !s->stopping);
794 if ((s1->class != SESSION_USER) != (s2->class != SESSION_USER))
795 return (s1->class != SESSION_USER) - (s2->class != SESSION_USER);
H A Dloginctl.c295 char *class; member in struct:SessionStatusInfo
328 free(info->class);
430 { "Class", "s", NULL, offsetof(SessionStatusInfo, class) },
513 if (i.class)
514 printf("; class %s", i.class);
520 if (i.class)
521 printf("; class %s", i.class);
524 } else if (i.class)
[all...]
H A Dlogind-session.h73 SessionClass class;
/systemd/src/bus-proxyd/
H A Dbus-xml-policy.c318 if (i->class != _POLICY_ITEM_CLASS_UNSET && ic != i->class) {
323 i->class = ic;
361 if (i->class == _POLICY_ITEM_CLASS_UNSET)
362 i->class = POLICY_ITEM_RECV;
566 switch (i->class) {
662 PolicyItemClass class; member in struct:policy_check_filter
684 switch (i->class) {
751 if (i->class != filter->class
[all...]
H A Dbus-xml-policy.h52 PolicyItemClass class;
/systemd/src/libsystemd/sd-login/
H A Dtest-login.c37 char *seat, *type, *class, *display, *remote_user, *remote_host, *display_session, *cgroup; local
110 assert_se(sd_session_get_class(session, &class) >= 0);
111 printf("class = %s\n", class);
112 free(class);
/systemd/src/backlight/
H A Dbacklight.c70 value = udev_device_get_sysattr_value(parent, "class");
72 unsigned long class = 0; local
74 if (safe_atolu(value, &class) < 0) {
75 log_warning("Cannot parse PCI class %s of device %s:%s.",
81 if (class == 0x30000)
/systemd/src/nss-mymachines/
H A Dnss-mymachines.c93 _cleanup_free_ char *class = NULL; local
107 r = sd_machine_get_class(name, &class);
110 if (!streq(class, "container")) {
243 _cleanup_free_ char *class = NULL; local
265 r = sd_machine_get_class(name, &class);
268 if (!streq(class, "container")) {

Completed in 164 milliseconds

12