Lines Matching defs:device
62 static void partinfo(int fd, char *device);
63 static void devinfo(struct dk_geom *geom, int fd, char *device);
73 char *device;
82 device = optarg;
86 device = optarg;
101 if ((fd = open(device, O_RDONLY)) < 0) {
103 device, strerror(errno));
110 (void) warn(device,
113 (void) warn(device,
119 devinfo(&geom, fd, device);
122 partinfo(fd, device);
128 partinfo(int fd, char *device)
138 i = stat64(device, &statbuf);
144 if ((slice = readvtoc(fd, device, &vtdata)) >= 0) {
147 device, maj, min,
155 device, maj, min,
166 devinfo(struct dk_geom *geom, int fd, char *device)
180 if (readvtoc(fd, device, &vtdata) < 0)
196 * device, version, driveid, sectorcyl, bytes, nopartitions);
199 device, 0, 0, sectorcyl, bytes, nopartitions);
252 (void) fprintf(stderr, "Usage: devinfo -p device\n"
253 " devinfo -i device \n");