7 #ifndef LINUX_LIBV2_SOURCE_DISK_TQ_DISK_H_ 8 #define LINUX_LIBV2_SOURCE_DISK_TQ_DISK_H_ 13 #define DEVTYPE_DISK 2 17 #define DISK_API extern "C" int tq_CheckIsDiskOrUsbDisk(char *devname)
判读是u盘还是sata硬盘
int tq_get_sdisk_dev(char *ndev)
Get the sdisk dev object.
int tq_get_flash_dev(char *ndev)
获取闪存对象
int tq_get_udisk_count(void)
获取u盘个数
int tq_get_nvme_dev(char *ndev)
Get the nvme dev object.
int tq_get_udisk_devname(int index, char *buff, int length)
获取U盘设备节点
int tq_get_disk_path(const char *node, char *buff, int size)
Get the disk path object.