from GENERIC: # IDE drives # Flags are used only with controllers that support DMA operations # and mode settings (e.g. some pciide controllers) # The lowest order four bits (rightmost digit) of the flags define the PIO # mode to use, the next set of four bits the DMA mode and the third set the # UltraDMA mode. For each set of four bits, the 3 lower bits define the mode # to use, and the last bit must be 1 for this setting to be used. # For DMA and UDMA, 0xf (1111) means 'disable'. # 0x0fac means 'use PIO mode 4, DMA mode 2, disable UltraDMA'. # (0xc=1100, 0xa=1010, 0xf=1111) # 0x0000 means "use whatever the drive claims to support". wd* at wdc? channel ? drive ? flags 0x0000 wd* at pciide? channel ? drive ? flags 0x0000
average = (f_size1 + f_size2)/2; printf("average size in integer: %d\n",average); printf("average size in float: %f\n",average); printf("average size in hexadecimal: %x\n",average); printf("average size in octal: %o\n",average);
open for reading 1 open for reading 2 f-size 1: 182 f-size 2: 96 average size in integer: 139 average size in float: 0.000000 average size in hexadecimal: 8b average size in octal: 213