Lines Matching +full:device +full:- +full:version
24 fprintf(stderr, "usage: %s [-a] [-n] [-s slot]\n", prog); in usage()
30 int rc = -1; in proc_arg()
38 while ((ch = getopt(ac, av, "ans:")) != -1) { in proc_arg()
73 int so = -1; in connect_to_pccardd()
112 return -1; in connect_to_pccardd()
134 buf[sizeof buf - 1] = 0; in get_slot_number()
141 return -1; in get_slot_number()
152 get_slot_info(int so, int slot, char **manuf, char **version, char in get_slot_info() argument
153 **device, int *state) in get_slot_info() argument
155 int rc = -1; in get_slot_info()
204 if ((*version = strdup(_version)) == NULL) { in get_slot_info()
208 if ((*device = strdup(_device)) == NULL) { in get_slot_info()
212 if (*manuf == NULL || *version == NULL || *device == NULL) { in get_slot_info()
244 int so = -1; in main()
260 char *version; in main() local
261 char *device; in main() local
264 if (get_slot_info(so, i, &manuf, &version, &device, in main()
267 if (manuf == NULL || version == NULL || device == NULL) in main()
270 i, manuf, version, device, strstate(state)); in main()
272 free(version); in main()
273 free(device); in main()