Lines Matching defs:devices

38  *	getdev()	List devices that match certain criteria.
122 * list by examining the devices list and
124 * initdevicelist() Initializes the linked list of devices
127 * list of devices
128 * addtodevicelist() Adds an entry to the linked list of devices
133 * buildreturnlist() Builds the list of devices to return from the
134 * linked list of devices we've accumulated
136 * devices presented by the caller
138 * devices aliases
169 * devicelisthead The first item (dummy) in the linked list of devices
171 * devicelist Structure describing the linked list of devices
181 * char **getdev(devices, criteria, options)
182 * char **devices
186 * This function builds a list of devices that match criteria,
190 * devices The list of devices to select from or the list of
191 * devices to exclude, depending on the value of
198 * devices in the list of devices be excluded from the
200 * devices in the list)
203 * The address of the first item in the list of devices that meet
209 char **devices, /* List of devices to constrain */
214 char **aliases; /* List of constraining devices */
226 aliases = makealiaslist(devices);
227 if (devices && !aliases)
247 if (entry = oktoaddtolist(entry, devices, aliases, options)) {
271 * char *oktoaddtolist(devtabentry, devices, aliases, options)
273 * char **devices
278 * added to the list of devices we're accumulating. If so,
284 * devices The devices specified by the caller
285 * aliases The aliases of the devices specified by the caller
286 * (1-1 correspondence with "devices")
293 char **devices, /* List of devices to check against */
294 char **aliases, /* List of alias of those devices */
302 if (devices && aliases) {
309 devices++;
317 NULL : *devices;
330 * This function initializes the list of accumulated devices.
351 * devices we've been accumulating.
378 * This function adds the device <deventry> to the list of devices already
386 * accumulated devices
607 * to be returned from the linked-list of devices we've been
633 * Walk the list of accumulated devices, putting pointers to
650 * char **makealiaslist(devices)
651 * char **devices List of aliases
653 * Builds a list of aliases of the devices in the "devices"
655 * will have the same number of elements as "devices". If
657 * will be a one-to-one correspondence of devices to aliases
658 * in the device list "devices" and the generated list.
661 * devices The list of devices to derive aliases from
669 makealiaslist(char **devices)
678 int n; /* Count of entries in "devices" */
683 if (devices) {
686 for (n = 1, pp = devices; *pp; pp++) n++;
693 for (pp = devices; noerror && *pp; pp++) {