Searched refs:attr (Results 1 - 14 of 14) sorted by relevance

/systemd/src/basic/
H A Dsmack-util.c59 int mac_smack_read(const char *path, SmackAttr attr, char **label) { argument
61 assert(attr >= 0 && attr < _SMACK_ATTR_MAX);
67 return getxattr_malloc(path, smack_attr_to_string(attr), label, true);
70 int mac_smack_read_fd(int fd, SmackAttr attr, char **label) { argument
72 assert(attr >= 0 && attr < _SMACK_ATTR_MAX);
78 return fgetxattr_malloc(fd, smack_attr_to_string(attr), label);
81 int mac_smack_apply(const char *path, SmackAttr attr, const char *label) { argument
85 assert(attr >
100 mac_smack_apply_fd(int fd, SmackAttr attr, const char *label) argument
214 mac_smack_read(const char *path, SmackAttr attr, char **label) argument
218 mac_smack_read_fd(int fd, SmackAttr attr, char **label) argument
222 mac_smack_apply(const char *path, SmackAttr attr, const char *label) argument
226 mac_smack_apply_fd(int fd, SmackAttr attr, const char *label) argument
[all...]
H A Dsmack-util.h49 int mac_smack_read(const char *path, SmackAttr attr, char **label);
50 int mac_smack_read_fd(int fd, SmackAttr attr, char **label);
51 int mac_smack_apply(const char *path, SmackAttr attr, const char *label);
52 int mac_smack_apply_fd(int fd, SmackAttr attr, const char *label);
/systemd/src/libudev/
H A Dlibudev-util.c50 char *attr; local
65 attr = strchr(sysname, ']');
66 if (attr == NULL)
68 attr[0] = '\0';
69 attr = &attr[1];
70 if (attr[0] == '/')
71 attr = &attr[1];
72 if (attr[
[all...]
/systemd/src/libsystemd/sd-device/
H A Ddevice-util.h34 #define FOREACH_DEVICE_SYSATTR(device, attr) \
35 for (attr = sd_device_get_sysattr_first(device); \
36 attr; \
37 attr = sd_device_get_sysattr_next(device))
/systemd/src/udev/
H A Dudev-builtin-net_id.c140 const char *attr; local
144 attr = udev_device_get_sysattr_value(names->pcidev, "acpi_index");
146 if (!attr)
147 attr = udev_device_get_sysattr_value(names->pcidev, "index");
148 if (!attr)
151 idx = strtoul(attr, NULL, 0);
163 attr = udev_device_get_sysattr_value(dev, "dev_port");
164 if (attr)
165 dev_port = strtol(attr, NULL, 10);
205 const char *attr; local
[all...]
H A Dudev-rules.c134 TK_M_ENV, /* val, attr */
139 TK_M_ATTR, /* val, attr */
140 TK_M_SYSCTL, /* val, attr */
146 TK_M_ATTRS, /* val, attr */
174 TK_A_SECLABEL, /* val, attr */
175 TK_A_ENV, /* val, attr */
178 TK_A_ATTR, /* val, attr */
179 TK_A_SYSCTL, /* val, attr */
331 const char *attr = &rules->buf[token->key.attr_off]; local
386 token_str(type), operation_str(op), attr, valu
689 attr_subst_subdir(char *attr, size_t len) argument
818 char *attr; local
838 const char *attr = NULL; local
1016 const char *attr; local
2492 char attr[UTIL_PATH_SIZE]; local
[all...]
H A Dudev-builtin-input_id.c78 * @param attr sysfs attribute name (e. g. "capabilities/key")
82 struct udev_device *pdev, const char* attr,
91 v = udev_device_get_sysattr_value(pdev, attr);
96 log_debug("%s raw kernel attribute: %s", attr, text);
105 log_debug("ignoring %s block %lX which is larger than maximum size", attr, val);
113 log_debug("ignoring %s block %lX which is larger than maximum size", attr, val);
119 log_debug("%s decoded bit map:", attr);
81 get_cap_mask(struct udev_device *dev, struct udev_device *pdev, const char* attr, unsigned long *bitmask, size_t bitmask_size, bool test) argument
H A Dudev-event.c104 { .name = "attr", .fmt = 's', .type = SUBST_ATTR },
134 char *attr = NULL; local
182 /* extract possible $format{attr} */
198 attr = attrbuf;
200 attr = NULL;
254 if (attr != NULL)
255 i = strtoul(attr, &rest, 10);
294 if (attr == NULL) {
295 log_error("missing file parameter for attr");
300 if (util_resolve_subsys_kernel(event->udev, attr, vbu
[all...]
/systemd/src/bus-proxyd/
H A Dbus-proxyd.c117 pthread_attr_t attr; local
120 r = pthread_attr_init(&attr);
124 r = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
159 r = pthread_create(&tid, &attr, run_client, c);
168 pthread_attr_destroy(&attr);
/systemd/src/hostname/
H A Dhostnamectl.c127 static int show_one_name(sd_bus *bus, const char* attr) { argument
138 attr,
218 const char *attr; local
225 attr = arg_pretty ? "PrettyHostname" :
228 return show_one_name(bus, attr);
/systemd/src/shared/
H A Defivars.c58 uint32_t attr; member in struct:boot_option
265 uint32_t attr; member in struct:var
292 buf->attr = EFI_VARIABLE_NON_VOLATILE|EFI_VARIABLE_BOOTSERVICE_ACCESS|EFI_VARIABLE_RUNTIME_ACCESS;
437 *active = !!(header->attr & LOAD_OPTION_ACTIVE);
498 option->attr = LOAD_OPTION_ACTIVE;
/systemd/src/libsystemd/sd-daemon/
H A Dsd-daemon.c369 struct mq_attr attr; local
374 if (mq_getattr(fd, &attr) < 0) {
/systemd/src/network/
H A Dnetworkd-network.c332 const char *attr; local
335 attr = udev_device_get_sysattr_value(device, "name_assign_type");
336 if (attr)
337 (void) safe_atou8(attr, &name_assign_type);
/systemd/src/core/
H A Dsocket.c1103 struct mq_attr _attr, *attr = NULL; local
1114 attr = &_attr;
1122 fd = mq_open(path, O_RDONLY|O_CLOEXEC|O_NONBLOCK|O_CREAT, mq_mode, attr);

Completed in 3004 milliseconds