Changeset 00d17034 in rtems for cpukit/libblock
- Timestamp:
- 03/12/10 16:35:13 (14 years ago)
- Branches:
- 4.10, 4.11, 5, master
- Children:
- 0dca067
- Parents:
- 8c53580
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpukit/libblock/src/ide_part_table.c
r8c53580 r00d17034 427 427 428 428 /* 429 * rtems_ide_part_table_free - frees disk descriptor structure429 * partition_table_free - frees disk descriptor structure 430 430 * 431 431 * PARAMETERS: … … 435 435 * N/A 436 436 */ 437 void438 rtems_ide_part_table_free(rtems_disk_desc_t *disk_desc)437 static void 438 partition_table_free(rtems_disk_desc_t *disk_desc) 439 439 { 440 440 int part_num; 441 441 442 for (part_num = 0; part_num < RTEMS_IDE_PARTITION_MAX_SUB_PARTITION_NUMBER; part_num++) 442 for (part_num = 0; 443 part_num < RTEMS_IDE_PARTITION_MAX_SUB_PARTITION_NUMBER; 444 part_num++) 443 445 { 444 446 partition_free(disk_desc->partitions[part_num]); … … 450 452 451 453 /* 452 * rtems_ide_part_table_get - reads partition table structure from the device454 * partition_table_get - reads partition table structure from the device 453 455 * and creates disk description structure 454 456 * … … 461 463 * RTEMS_INTERNAL_ERROR otherwise 462 464 */ 463 rtems_status_code464 rtems_ide_part_table_get(const char *dev_name, rtems_disk_desc_t *disk_desc)465 static rtems_status_code 466 partition_table_get(const char *dev_name, rtems_disk_desc_t *disk_desc) 465 467 { 466 468 struct stat dev_stat; … … 481 483 482 484 return rc; 485 } 486 487 488 /* 489 * rtems_ide_part_table_free - frees disk descriptor structure 490 * 491 * PARAMETERS: 492 * disk_desc - disc descriptor structure to free 493 * 494 * RETURNS: 495 * N/A 496 */ 497 void 498 rtems_ide_part_table_free(rtems_disk_desc_t *disk_desc) 499 { 500 partition_table_free( disk_desc ); 501 } 502 503 504 /* 505 * rtems_ide_part_table_get - reads partition table structure from the device 506 * and creates disk description structure 507 * 508 * PARAMETERS: 509 * dev_name - path to physical device in /dev filesystem 510 * disk_desc - returned disc description structure 511 * 512 * RETURNS: 513 * RTEMS_SUCCESSFUL if success, 514 * RTEMS_INTERNAL_ERROR otherwise 515 */ 516 rtems_status_code 517 rtems_ide_part_table_get(const char *dev_name, rtems_disk_desc_t *disk_desc) 518 { 519 return partition_table_get( dev_name, disk_desc ); 483 520 } 484 521 … … 517 554 518 555 /* get partition table */ 519 rc = rtems_ide_part_table_get(dev_name, disk_desc);556 rc = partition_table_get(dev_name, disk_desc); 520 557 if (rc != RTEMS_SUCCESSFUL) 521 558 { … … 552 589 } 553 590 554 rtems_ide_part_table_free(disk_desc);591 partition_table_free(disk_desc); 555 592 556 593 return RTEMS_SUCCESSFUL;
Note: See TracChangeset
for help on using the changeset viewer.