Lines Matching refs:new
561 struct switch_attr *new;
567 new = swlib_alloc(sizeof(struct switch_attr));
568 if (!new)
571 new->dev = arg->dev;
572 new->atype = arg->atype;
574 arg->prev->next = new;
578 *arg->head = new;
579 arg->head = &new->next;
582 new->id = nla_get_u32(tb[SWITCH_ATTR_OP_ID]);
584 new->type = nla_get_u32(tb[SWITCH_ATTR_OP_TYPE]);
586 new->name = strdup(nla_get_string(tb[SWITCH_ATTR_OP_NAME]));
588 new->description = strdup(nla_get_string(tb[SWITCH_ATTR_OP_DESCRIPTION]));