Lines Matching defs:root
1272 void snmp_varbind_list_free(struct snmp_varbind_root *root)
1276 vb = root->tail;
1282 root->count = 0;
1283 root->head = NULL;
1284 root->tail = NULL;
1288 snmp_varbind_tail_add(struct snmp_varbind_root *root, struct snmp_varbind *vb)
1290 if (root->count == 0) {
1292 root->head = vb;
1293 root->tail = vb;
1296 root->tail->next = vb;
1297 vb->prev = root->tail;
1298 root->tail = vb;
1300 root->count += 1;
1303 struct snmp_varbind *snmp_varbind_tail_remove(struct snmp_varbind_root *root)
1307 if (root->count > 0) {
1309 vb = root->tail;
1310 root->tail = vb->prev;
1312 root->count -= 1;