7 #ifndef LINUX_LIBV2_SOURCE_DISK_LIB_DISK_H_ 8 #define LINUX_LIBV2_SOURCE_DISK_LIB_DISK_H_ 10 #define DEVTYPE_DISK 2 13 #define DISK_API extern "C" DISK_API int CheckIsDiskOrUsbDisk(char *devname)
判读是u盘还是sata硬盘
struct tagDevinfo_T * ptagDevinfo_t
unsigned char devtype
设备类型,2:硬盘,3:U盘
DISK_API int get_sdisk_dev(char *ndev)
Get the sdisk dev object.
unsigned char devname[12]
设备名
DISK_API int get_udisk_count(void)
获取u盘个数
DISK_API int get_flash_dev(char *ndev)
获取闪存对象
unsigned int dev_totalspace
总空间 KB
DISK_API int get_disk_path(const char *node, char *buff, int size)
Get the disk path object.
DISK_API int get_nvme_dev(char *ndev)
Get the nvme dev object.
struct tagDevParam_T tagDevParam_t
外部设备的子结构
unsigned char partition_count
分区个数
unsigned int partition_size[12]
分区大小,单位KB
DISK_API int get_udisk_devname(int index, char *buff, int length)
获取U盘设备节点
struct tagDevinfo_T tagDevinfo_t
设备消息标志
struct tagDevParam_T * ptagDevParam_t