Home | History | Annotate | Download | only in lib

Lines Matching refs:device

0 /* device.c - Some helper functions for OS devices and BIOS drives */
47 # define HDIO_GETGEO 0x0301 /* get device geometry */
73 # define BLKGETSIZE _IO(0x12,96) /* return device size */
132 #include <device.h>
339 0 /* char device */
380 0 /* char device */
412 /* Check if DEVICE can be read. If an error occurs, return zero,
415 check_device (const char *device)
420 /* If DEVICE is empty, just return 1. */
421 if (*device == 0)
424 fp = fopen (device, "r");
445 /* Error opening the device. */
456 /* Check if DEVICE is a CD-ROM drive by the HDIO_GETGEO ioctl. */
464 /* If it is a block device and isn't a floppy, check if HDIO_GETGEO
514 /* If there is the device map file, use the data in it instead of
561 show_error (line_number, "Bad device number");
612 /* Initialize the device map MAP. *MAP will be allocated from the heap
630 /* Probe devices for creating the device map. */
638 /* Open the device map file. */
657 /* Try to open the device map file to write the probed data. */
699 /* If the device map file is opened, write the map. */
707 /* OK, close the device map file if opened. */
726 /* If the device map file is opened, write the map. */
746 /* If the device map file is opened, write the map. */
766 /* If the device map file is opened, write the map. */
795 /* If the device map file is opened, write the map. */
806 /* OK, close the device map file if opened. */