Lines Matching defs:list
61 * group list
64 * next Pointer to the next in the list
75 * initdgrplist Initialize the internal device group list
76 * addtodgrplist Add a device group to the device group list
78 * isincallerslist Is a device group in the caller's list?
79 * buildreturnlist Build list of device groups to return
80 * freedgrplist Free the internal device group list
93 * dgrplistfirst First (dummy) node in the device group list
94 * dgrplistcount Number of items in the device group list
106 * This function compiles a list of device groups containing devices
108 * item in that list.
111 * dgroups The list of device groups to choose from or the list
112 * of device groups to exclude from the list (depends on
117 * generated list to "dgroups" or to exclude those
118 * device-groups from the list, 3) to list all device
122 * A pointer to the first address in the list of addresses of generated
149 * Get the list of devices that meet the criteria specified
151 * there is no criteria list.
164 * Initialize the device group list (contains the device groups
190 * If the exclusion flag is not set, build a list of device
205 * If the exclusion flag is set, build a list of device groups
206 * that meet the criteria and are not in the list of device
228 * Initializes the internal device group linked list
254 * internal list of device-groups we're accumulating.
268 struct dgrplist *p; /* Running dgrp list ptr */
269 struct dgrplist *q; /* Another Running dgrp list ptr */
277 /* Find where we're supposed to insert this item in the list */
285 /* If the item isn't already in the list, insert it */
295 /* Link the new structure into the list */
317 * This function searches the device membership list of the device
318 * group <dgrp> for any of the devices listed in the list of devices
324 * devlist The list of devices to search for
337 struct member *pmbr; /* Next member of the dgrp list */
338 char **pdev; /* Next device in the dev list */
341 int notfound; /* TRUE if no mbr of dgrp is in dev list */
347 * sorted list of devices for that device.
362 /* If we've got a member alias, search the device list for it */
368 break; /* Optimization: alpha sorted list */
381 * a member that is in the list of devices
392 * This function looks through the "dgroups" list for the device
397 * dgroups The address of the first item in the list of device
407 char **dgroups) /* Caller's list of dgroups */
414 * Search the list of device groups for the name of the device group
421 /* Search the device group list for name of this device group */
426 /* Return TRUE if the device group is in the list, FALSE otherwise */
433 * This function builds the list of pointers to device groups
434 * to return to the caller from the linked list of device-groups
440 * A pointer to the first element in the malloc()ed list of pointers
448 char **list; /* List being built */
449 char **pp; /* Temp ptr within list */
450 struct dgrplist *pdgrpent; /* Ptr into list of dgrps to return */
452 /* Allocate space for the list of pointers to device groups */
453 list = malloc((dgrplistcount+1)*sizeof (char *));
456 * For each item in the device group list, put an entry in the
457 * list of names we're building
459 if ((pp = list) != NULL) {
465 /* The list ends with a null pointer */
469 /* Return a pointer to the allocated list */
470 return (list);
477 * linked list of device groups