Searched refs:data (Results 1 - 25 of 142) sorted by relevance

123456

/systemd/src/shared/
H A Dspecifier.h22 typedef int (*SpecifierCallback)(char specifier, void *data, void *userdata, char **ret);
27 void *data; member in struct:Specifier
32 int specifier_string(char specifier, void *data, void *userdata, char **ret);
34 int specifier_machine_id(char specifier, void *data, void *userdata, char **ret);
35 int specifier_boot_id(char specifier, void *data, void *userdata, char **ret);
36 int specifier_host_name(char specifier, void *data, void *userdata, char **ret);
37 int specifier_kernel_release(char specifier, void *data, void *userdata, char **ret);
H A Dconf-parser.h44 void *data,
54 void *data; /* Where to store the variable's data */ member in struct:ConfigTableItem
63 size_t offset; /* Offset where to store data, from the beginning of userdata */
76 void **data,
81 int config_item_table_lookup(const void *table, const char *section, const char *lvalue, ConfigParserCallback *func, int *ltype, void **data, void *userdata);
85 int config_item_perf_lookup(const void *table, const char *section, const char *lvalue, ConfigParserCallback *func, int *ltype, void **data, void *userdata);
107 int config_parse_int(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
108 int config_parse_unsigned(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
109 int config_parse_long(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, voi
[all...]
H A Dinstall-printf.c33 static int specifier_prefix_and_instance(char specifier, void *data, void *userdata, char **ret) { argument
41 static int specifier_prefix(char specifier, void *data, void *userdata, char **ret) { argument
49 static int specifier_instance(char specifier, void *data, void *userdata, char **ret) { argument
70 static int specifier_user_name(char specifier, void *data, void *userdata, char **ret) { argument
86 static int specifier_user_id(char specifier, void *data, void *userdata, char **ret) { argument
H A Dconf-parser.c52 void **data,
61 assert(data);
73 *data = t->data;
86 void **data,
96 assert(data);
116 *data = (uint8_t*) userdata + p->offset;
135 void *data = NULL; local
144 r = lookup(table, section, lvalue, &func, &ltype, &data, userdata);
151 lvalue, ltype, rvalue, data, userdat
46 config_item_table_lookup( const void *table, const char *section, const char *lvalue, ConfigParserCallback *func, int *ltype, void **data, void *userdata) argument
80 config_item_perf_lookup( const void *table, const char *section, const char *lvalue, ConfigParserCallback *func, int *ltype, void **data, void *userdata) argument
466 config_parse_iec_size(const char* unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata) argument
496 config_parse_si_size(const char* unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata) argument
526 config_parse_iec_uint64(const char* unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata) argument
552 config_parse_bool(const char* unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata) argument
581 config_parse_tristate( const char* unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata) argument
614 config_parse_string( const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata) argument
652 config_parse_path( const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata) argument
693 config_parse_strv(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata) argument
753 config_parse_log_facility( const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata) argument
784 config_parse_log_level( const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata) argument
814 config_parse_signal( const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata) argument
843 config_parse_personality( const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata) argument
[all...]
H A Dresolve-util.h53 int config_parse_resolve_support(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
54 int config_parse_dnssec_mode(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
/systemd/src/test/
H A Dtest-unaligned.c24 static uint8_t data[] = { variable
32 assert_se(unaligned_read_be16(&data[0]) == 0x0001);
33 assert_se(unaligned_read_be16(&data[1]) == 0x0102);
35 assert_se(unaligned_read_be32(&data[0]) == 0x00010203);
36 assert_se(unaligned_read_be32(&data[1]) == 0x01020304);
37 assert_se(unaligned_read_be32(&data[2]) == 0x02030405);
38 assert_se(unaligned_read_be32(&data[3]) == 0x03040506);
40 assert_se(unaligned_read_be64(&data[0]) == 0x0001020304050607);
41 assert_se(unaligned_read_be64(&data[1]) == 0x0102030405060708);
42 assert_se(unaligned_read_be64(&data[
[all...]
H A Dtest-xml.c27 static void test_one(const char *data, ...) { argument
31 va_start(ap, data);
38 t = xml_tokenize(&data, &name, &state, NULL);
/systemd/src/basic/
H A DMurmurHash2.c51 const unsigned char * data = (const unsigned char *)key; local
55 uint32_t k = *(uint32_t*)data;
64 data += 4;
72 case 3: h ^= data[2] << 16;
73 case 2: h ^= data[1] << 8;
74 case 1: h ^= data[0];
H A Dprioq.c38 void *data; member in struct:prioq_item
94 saved_data = q->items[j].data;
96 q->items[j].data = q->items[k].data;
98 q->items[k].data = saved_data;
116 if (q->compare_func(q->items[k].data, q->items[idx].data) <= 0)
138 if (q->compare_func(q->items[j].data, q->items[idx].data) < 0)
147 q->compare_func(q->items[k].data,
166 prioq_put(Prioq *q, void *data, unsigned *idx) argument
228 find_item(Prioq *q, void *data, unsigned *idx) argument
251 prioq_remove(Prioq *q, void *data, unsigned *idx) argument
265 prioq_reshuffle(Prioq *q, void *data, unsigned *idx) argument
293 void *data; local
[all...]
H A Dprioq.h35 int prioq_put(Prioq *q, void *data, unsigned *idx);
36 int prioq_remove(Prioq *q, void *data, unsigned *idx);
37 int prioq_reshuffle(Prioq *q, void *data, unsigned *idx);
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)
/systemd/src/libsystemd-network/
H A Dlldp-tlv.h43 uint8_t *data; member in struct:sd_lldp_section
78 int tlv_packet_append_bytes(tlv_packet *m, const void *data, size_t data_length);
79 int tlv_packet_append_u8(tlv_packet *m, uint8_t data);
80 int tlv_packet_append_u16(tlv_packet *m, uint16_t data);
81 int tlv_packet_append_u32(tlv_packet *m, uint32_t data);
82 int tlv_packet_append_string(tlv_packet *m, char *data, uint16_t size);
88 int tlv_packet_read_bytes(tlv_packet *m, uint8_t **data, uint16_t *data_length);
89 int tlv_packet_read_string(tlv_packet *m, char **data, uint16_t *data_length);
90 int tlv_packet_read_u8(tlv_packet *m, uint8_t *data);
91 int tlv_packet_read_u16(tlv_packet *m, uint16_t *data);
[all...]
H A Dnetwork-internal.h47 int ltype, const char *rvalue, void *data, void *userdata);
51 int ltype, const char *rvalue, void *data, void *userdata);
55 int ltype, const char *rvalue, void *data, void *userdata);
59 int ltype, const char *rvalue, void *data, void *userdata);
63 int ltype, const char *rvalue, void *data, void *userdata);
80 int serialize_dhcp_option(FILE *f, const char *key, const void *data, size_t size);
81 int deserialize_dhcp_option(void **data, size_t *data_len, const char *string);
H A Dlldp-internal.c40 uint8_t *data; local
47 r = sd_lldp_packet_read_port_id(tlv, &type, &data, &length);
54 if ((p->type == type && p->length == length && !memcmp(p->data, data, p->length))) {
76 uint8_t *data; local
84 r = sd_lldp_packet_read_port_id(tlv, &type, &data, &length);
91 if (p->type == type && p->length == length && !memcmp(p->data, data, p->length)) {
107 uint8_t subtype, *data; local
115 r = sd_lldp_packet_read_chassis_id(tlv, &subtype, &data,
249 uint8_t *data; local
302 uint8_t *data; local
[all...]
/systemd/src/core/
H A Dload-fragment.h24 /* Read service data from .desktop file style configuration fragments */
30 int config_parse_warn_compat(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
31 int config_parse_unit_deps(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
32 int config_parse_obsolete_unit_deps(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
33 int config_parse_unit_string_printf(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
34 int config_parse_unit_strv_printf(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
35 int config_parse_unit_path_printf(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
36 int config_parse_unit_path_strv_printf(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
37 int config_parse_documentation(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
38 int config_parse_socket_listen(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, voi
[all...]
/systemd/src/network/
H A Dnetworkd-util.h34 int config_parse_address_family_boolean(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
35 int config_parse_address_family_boolean_with_kernel(const char* unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
H A Dnetworkd-netdev-vxlan.h68 void *data,
78 void *data,
89 void *data,
H A Dnetworkd-util.c70 void *data,
73 AddressFamilyBoolean *fwd = data, s;
78 assert(data);
61 config_parse_address_family_boolean_with_kernel( const char* unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata) argument
H A Dnetworkd-fdb.h44 int config_parse_fdb_hwaddr(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
45 int config_parse_fdb_vlan_id(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
/systemd/src/resolve/
H A Dresolved-conf.h34 int config_parse_dns_servers(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
35 int config_parse_search_domains(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
36 int config_parse_dnssec(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
/systemd/src/hostname/
H A Dhostnamed.c58 char *data[_PROP_MAX]; member in struct:Context
68 c->data[p] = mfree(c->data[p]);
87 c->data[PROP_KERNEL_NAME] = strdup(u.sysname);
88 c->data[PROP_KERNEL_RELEASE] = strdup(u.release);
89 c->data[PROP_KERNEL_VERSION] = strdup(u.version);
90 if (!c->data[PROP_KERNEL_NAME] || !c->data[PROP_KERNEL_RELEASE] ||
91 !c->data[PROP_KERNEL_VERSION])
94 c->data[PROP_HOSTNAM
[all...]
/systemd/src/nspawn/
H A Dnspawn-settings.h93 int config_parse_capability(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
94 int config_parse_id128(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
95 int config_parse_expose_port(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
96 int config_parse_volatile_mode(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
97 int config_parse_bind(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
98 int config_parse_tmpfs(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
99 int config_parse_veth_extra(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
100 int config_parse_boot(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
101 int config_parse_pid2(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
/systemd/src/journal/
H A Dtest-compress.c60 const char *data,
69 object_compressed_to_string(compression), data);
71 r = compress(data, data_len, compressed, sizeof(compressed), &csize);
81 assert_se(memcmp(decompressed, data, data_len) == 0);
103 const char *data,
113 object_compressed_to_string(compression), data);
120 r = compress(data, data_len, compressed, BUFSIZE_1, &csize);
127 r = compress(data, data_len, compressed, BUFSIZE_2, &csize);
132 len = strlen(data);
134 r = decompress_sw(compressed, csize, (void **) &decompressed, &usize, data, le
57 test_compress_decompress(int compression, compress_blob_t compress, decompress_blob_t decompress, const char *data, size_t data_len, bool may_fail) argument
100 test_decompress_startswith(int compression, compress_blob_t compress, decompress_sw_t decompress_sw, const char *data, size_t data_len, bool may_fail) argument
250 char data[512] = "random\\0"; local
[all...]
/systemd/src/systemd/
H A Dsd-lldp.h60 int sd_lldp_packet_read_chassis_id(sd_lldp_packet *tlv, uint8_t *type, uint8_t **data, uint16_t *length);
61 int sd_lldp_packet_read_port_id(sd_lldp_packet *tlv, uint8_t *type, uint8_t **data, uint16_t *length);
63 int sd_lldp_packet_read_system_name(sd_lldp_packet *tlv, char **data, uint16_t *length);
64 int sd_lldp_packet_read_system_description(sd_lldp_packet *tlv, char **data, uint16_t *length);
65 int sd_lldp_packet_read_system_capability(sd_lldp_packet *tlv, uint16_t *data);
66 int sd_lldp_packet_read_port_description(sd_lldp_packet *tlv, char **data, uint16_t *length);
/systemd/src/timesync/
H A Dtimesyncd-conf.h29 int config_parse_servers(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);

Completed in 56 milliseconds

123456