Home
last modified time | relevance | path

Searched refs:data_length (Results 1 – 3 of 3) sorted by relevance

/systemd-251/src/libsystemd/sd-netlink/
Dnetlink-util.c460 …attribute_internal(struct rtattr *rta, unsigned short type, const void *data, size_t data_length) { in rtattr_append_attribute_internal() argument
465 assert(!data || data_length > 0); in rtattr_append_attribute_internal()
469 rta->rta_len = RTA_LENGTH(data_length); in rtattr_append_attribute_internal()
474 padding = mempcpy(RTA_DATA(rta), data, data_length); in rtattr_append_attribute_internal()
482 padding_length = (uint8_t *) rta + RTA_SPACE(data_length) - padding; in rtattr_append_attribute_internal()
486 …_append_attribute(struct rtattr **rta, unsigned short type, const void *data, size_t data_length) { in rtattr_append_attribute() argument
491 assert(!data || data_length > 0); in rtattr_append_attribute()
494 message_length = RTA_ALIGN(rta ? (*rta)->rta_len : 0) + RTA_SPACE(data_length); in rtattr_append_attribute()
509 rtattr_append_attribute_internal(sub_rta, type, data, data_length); in rtattr_append_attribute()
Dnetlink-util.h141 …_attribute_internal(struct rtattr *rta, unsigned short type, const void *data, size_t data_length);
142 …r_append_attribute(struct rtattr **rta, unsigned short type, const void *data, size_t data_length);
Dnetlink-message.c175 … int add_rtattr(sd_netlink_message *m, unsigned short type, const void *data, size_t data_length) { in add_rtattr() argument
185 assert(!data || data_length > 0); in add_rtattr()
188 message_length = m->hdr->nlmsg_len + RTA_SPACE(data_length); in add_rtattr()
203 rtattr_append_attribute_internal(rta, type, data, data_length); in add_rtattr()
207 GET_CONTAINER(m, i)->rta_len += RTA_SPACE(data_length); in add_rtattr()