|
INT32 | los_disk_init (const CHAR *diskName, const struct block_operations *bops, VOID *priv, INT32 diskID, VOID *info) |
| Disk driver initialization. 更多...
|
|
INT32 | los_disk_deinit (INT32 diskID) |
| Destroy a disk driver. 更多...
|
|
INT32 | los_disk_read (INT32 drvID, VOID *buf, UINT64 sector, UINT32 count, BOOL useRead) |
| Read data from disk driver. 更多...
|
|
INT32 | los_disk_write (INT32 drvID, const VOID *buf, UINT64 sector, UINT32 count) |
| Write data to a disk driver. 更多...
|
|
INT32 | los_disk_ioctl (INT32 drvID, INT32 cmd, VOID *buf) |
| Get information of disk driver. 更多...
|
|
INT32 | los_disk_sync (INT32 drvID) |
| Sync blib cache. 更多...
|
|
INT32 | los_disk_set_bcache (INT32 drvID, UINT32 sectorPerBlock, UINT32 blockNum) |
| Set blib cache for the disk driver. 更多...
|
|
INT32 | los_part_read (INT32 pt, VOID *buf, UINT64 sector, UINT32 count, BOOL useRead) |
| Read data from chosen partition. 更多...
|
|
INT32 | los_part_write (INT32 pt, const VOID *buf, UINT64 sector, UINT32 count) |
| Write data to chosen partition. 更多...
|
|
INT32 | los_disk_cache_clear (INT32 drvID) |
| Clear the bcache data 更多...
|
|
INT32 | los_part_ioctl (INT32 pt, INT32 cmd, VOID *buf) |
| Get information of chosen partition. 更多...
|
|
INT32 | los_part_access (const CHAR *dev, mode_t mode) |
| Decide the chosen partition is exist or not. 更多...
|
|
los_part * | los_part_find (struct Vnode *blkDriver) |
| Find disk partition. 更多...
|
|
los_disk * | get_disk (INT32 id) |
| Find disk driver. 更多...
|
|
los_part * | get_part (INT32 id) |
| Find disk partition. 更多...
|
|
VOID | show_part (los_part *part) |
| Print partition information. 更多...
|
|
INT32 | add_mmc_partition (struct disk_divide_info *info, size_t sectorStart, size_t sectorCount) |
| Add a new mmc partition. 更多...
|
|
INT32 | los_alloc_diskid_byname (const CHAR *diskName) |
| alloc a new UNUSED disk id. 更多...
|
|
INT32 | los_get_diskid_byname (const CHAR *diskName) |
| get the INUSED disk id. 更多...
|
|
los_disk * | los_get_mmcdisk_bytype (UINT8 type) |
|