Lines Matching refs:attr
66 static pid_t ParseAggregateTaskStats(nlattr* attr, int attr_size, in ParseAggregateTaskStats() argument
69 nla_for_each_attr(attr, attr, attr_size, attr_size) { in ParseAggregateTaskStats()
70 switch (nla_type(attr)) { in ParseAggregateTaskStats()
73 received_pid = nla_get_u32(attr); in ParseAggregateTaskStats()
78 len = std::min(len, nla_len(attr)); in ParseAggregateTaskStats()
79 nla_memcpy(stats, attr, len); in ParseAggregateTaskStats()
94 nlattr* attr = genlmsg_attrdata(gnlh, 0); in ParseTaskStats() local
97 nla_for_each_attr(attr, attr, remaining, remaining) { in ParseTaskStats()
98 switch (nla_type(attr)) { in ParseTaskStats()
102 nlattr* nested_attr = static_cast<nlattr*>(nla_data(attr)); in ParseTaskStats()
106 ret = ParseAggregateTaskStats(nested_attr, nla_len(attr), &stats); in ParseTaskStats()