Lines Matching defs:cursor
204 struct per_pid *cursor = tchart->all_data;
206 while (cursor) {
207 if (cursor->pid == pid)
208 return cursor;
209 cursor = cursor->next;
211 cursor = zalloc(sizeof(*cursor));
212 assert(cursor != NULL);
213 cursor->pid = pid;
214 cursor->next = tchart->all_data;
215 tchart->all_data = cursor;
216 return cursor;
975 struct per_pid *new_list, *p, *cursor, *prev;
991 cursor = new_list;
992 while (cursor) {
993 if (cursor->ppid > p->ppid ||
994 (cursor->ppid == p->ppid && cursor->pid > p->pid)) {
999 cursor = NULL;
1004 cursor = NULL;
1009 prev = cursor;
1010 cursor = cursor->next;
1011 if (!cursor)