Lines Matching defs:cursor
158 struct per_pid *cursor = all_data;
160 while (cursor) {
161 if (cursor->pid == pid)
162 return cursor;
163 cursor = cursor->next;
165 cursor = malloc(sizeof(struct per_pid));
166 assert(cursor != NULL);
167 memset(cursor, 0, sizeof(struct per_pid));
168 cursor->pid = pid;
169 cursor->next = all_data;
170 all_data = cursor;
171 return cursor;
562 struct per_pid *new_list, *p, *cursor, *prev;
578 cursor = new_list;
579 while (cursor) {
580 if (cursor->ppid > p->ppid ||
581 (cursor->ppid == p->ppid && cursor->pid > p->pid)) {
586 cursor = NULL;
591 cursor = NULL;
596 prev = cursor;
597 cursor = cursor->next;
598 if (!cursor)