Lines Matching refs:device

67  *	EX_DEVTAB	Had trouble accessing/reading/writing the device table
70 * defined for the device
87 #define E_USAGE "usage: putdev -a alias [attribute=value [...]]\n putdev -m device attribute=value [attribute=value [...]]\n putdev -d device [attribute [...]]"
92 #define E_NODEVTAB "Cannot open the device table: %s"
93 #define E_NOMKDTAB "Cannot create a new device table: %s"
94 #define E_INVALIAS "Not a valid device alias: %s"
174 * Modify the device-table. If -a specified, add a record for <alias>
176 * the <device> specified. If -d specified, remove the specified
177 * attributes from the specified device or remove the specified device.
180 * -a Add an alias description to the device table
181 * -m Modify an existing device description
183 * device from the device table, or (if attributes
185 * the specified device.
191 * 2 The device table file could not be opened, read
194 * specified device does not exist in the table
196 * for the device and therefore wasn't removed
206 char *device; /* Ptr to <device> on command-line */
239 device = optarg;
247 device = optarg;
303 * in the device table.
314 * the device table.
362 /* putdev -m device attr=value [...] */
373 /* Attempt to modify a device's record */
374 if (!(_moddevtabrec(device, &argv[optind]))) {
391 * ENODEV indicates that the device that was to
396 (void) snprintf(msg, sizeof(msg), E_NODEV, device);
402 * ENOENT indicates that the device-table doesn't exist.
413 * old device table or creating the new table. If the
464 /* putdev -d device [attr [...]] */
473 * Determine case (removing a device or attributes
474 * to a device.
479 /* putdev -d device */
481 /* Attempt to remove the specified device */
482 if (!(_rmdevtabrec(device))) switch(errno) {
485 * ENODEV indicates that the named device is not
486 * defined in the device table.
490 (void) snprintf(msg, sizeof(msg), E_NODEV, device);
496 * ENOENT indicates that the device table can't
508 * old device table or creating the new table. If the
537 /* putdev -d device attr [attr [...]] */
541 * specified device.
543 if (!(_rmdevtabattrs(device, &argv[optind], &plist))) switch(errno) {
547 * defined for the specified device or "alias" was
567 * ENODEV indicates that the named device is not
568 * defined in the device table.
572 (void) snprintf(msg, sizeof(msg), E_NODEV, device);
578 * ENOENT indicates that the device table can't
590 * old device table or creating the new table. If the
617 } /* End "putdev -d device attr [...]" case */