Lines Matching defs:device

38  *			a device.
42 * devattr [-v] device [attr [...]]
44 * This command searches the device table file for the device specified.
45 * If it finds the device (matched either by alias or major and minor
46 * device number), it extracts the attribute(s) specified and writes
60 * 2 The device table could not be opened for reading.
61 * 3 The requested device was not found in the device table
62 * 4 A requested attribute was not defined for the device
95 * M_NODEV Device not found in the device table
97 * M_DEVTAB Can't open the device table
100 #define M_USAGE "usage: devattr [-v] device [attribute [...]]"
102 #define M_NODEV "Device not found in the device table: %s"
104 #define M_DEVTAB "Cannot open the device table: %s"
112 * EX_NODEV The device wasn't found in the device table
113 * EX_NOATTR A requested attribute wasn't defined for the device
150 * device and the requested attribute. It writes the information to
158 * 2 The device table could not be opened for reading.
159 * 3 The requested device was not found in the device table
160 * 4 A requested attribute was not defined for the device
169 char *device; /* Pointer to device name */
225 /* Open the device file (if there's one to be opened) */
242 * Get the list of known attributes for the device. This does
243 * two things. First, it verifies that the device is known in the
244 * device table. Second, it gets the attributes to list just in
249 device = argv[optind];
250 if ((argptr = listdev(device)) == (char **) NULL) {
252 (void) snprintf(txt, sizeof(txt), M_NODEV, device);
275 if (!(value = devattr(device, attr))) {