Lines Matching defs:list

90  *	ENDLIST		This entry ends the list
108 struct deviceent *next; /* Pointer to next item in the list */
122 * list by examining the devices list and
124 * initdevicelist() Initializes the linked list of devices
125 * to be included in the list-to-return
127 * list of devices
128 * addtodevicelist() Adds an entry to the linked list of devices
129 * buildsearchlist() Builds a list of struct srch structures from
131 * freesearchlist() Frees the resources allocated to the list of
133 * buildreturnlist() Builds the list of devices to return from the
134 * linked list of devices we've accumulated
135 * makealiaslist() Builds a list of aliases from the list of
137 * freealiaslist() Frees the resources allocated to the list of
169 * devicelisthead The first item (dummy) in the linked list of devices
171 * devicelist Structure describing the linked list of devices
186 * This function builds a list of devices that match criteria,
187 * governed by the device list.
190 * devices The list of devices to select from or the list of
193 * criteria The list of criteria governing the device selection
198 * devices in the list of devices be excluded from the
199 * generated list (default is to select only those
200 * devices in the list)
203 * The address of the first item in the list of devices that meet
225 /* Make sure the exclude/include list is all aliases */
230 /* Build the search list */
257 * - Build the list to return to the caller.
259 * - Free the alias list
260 * - Return the built list to the caller.
278 * added to the list of devices we're accumulating. If so,
283 * list we're building.
292 char *devtabentry, /* Alias to check against list */
301 /* If there's a constraint list, is this device in it? */
304 /* Set "found" to TRUE if the device is in the list */
322 } else rtnval = devtabentry; /* No constraint list */
330 * This function initializes the list of accumulated devices.
342 /* Make the list a null list */
350 * This function frees the resources allocated to the linked list of
378 * This function adds the device <deventry> to the list of devices already
380 * in the list. The function returns 0 if successful, -1 if not with
385 * The name of the device to add to the list of
419 * Find the place in the found device list devicelist where this
433 * If the device is not already in the list, insert it in the list
445 * Insert an entry in the found device list containing
458 /* Couldn't alloc space for new node in the found list. Error. */
471 * This function builds a list of search criteria structures from the
472 * criteria strings in the list of criteria whose first argument is
476 * criteria The address of the first item in a list of
480 * The address of the structure in the list of structures describing the
510 /* Count the number of criteria in the list */
522 /* Keep list sane for cleanup if necessary */
566 /* Terminate list */
576 * void freesearchlist(list)
577 * struct srch *list
579 * This function frees the resources allocated to the searchlist <list>.
582 * list The list whose resources are to be released.
588 freesearchlist(struct srch *list)
595 for (psrch = list; psrch->fcn != ENDLIST; psrch++) {
599 /* Free the list space */
600 free(list);
606 * This function builds a list of addresses of character-strings
607 * to be returned from the linked-list of devices we've been
608 * building. It returns a pointer to the first item in that list.
613 * The address of the first item in the return list
620 char **list;
626 * Allocate space for the return list,
630 if (list = malloc((devicelist.count+1)*sizeof (char *))) {
633 * Walk the list of accumulated devices, putting pointers to
634 * device names in the list to return
637 q = list;
640 /* End the list with a null-pointer */
645 /* Return a pointer to the list we've built */
646 return (list);
653 * Builds a list of aliases of the devices in the "devices"
654 * list. This list will be terminated by (char *) NULL and
658 * in the device list "devices" and the generated list.
661 * devices The list of devices to derive aliases from
664 * The address of the list of addresses of aliases. The list
685 /* Get the number of entries in the constaint list */
688 /* Get space for the alias list */
691 /* Build the alias list */
695 /* Get the device's alias and put it in the list */
716 aliases = NULL; /* No constraint list */
718 /* Return ptr to generated list or NULL if none or error */
727 * allocated to the character-strings referenced by the list then
728 * it frees the list.
731 * aliaslist The address of the first item in the list of
738 freealiaslist(char **aliaslist) /* Ptr to new device list */
743 /* If there's a list ... */
746 /* For each entry in the old list, free the entry */
749 /* Free the list */
763 * criteria The linked list of criteria to use to match a device
861 int notfound; /* TRUE if attr found in list */