天嵌二次封装库使用手册
V2.1.2
|
宏定义 | |
#define | DEVTYPE_DISK 2 |
硬盘 更多... | |
#define | DEVTYPE_U 3 |
U盘 更多... | |
#define | DISK_API |
函数 | |
int | tq_get_udisk_count (void) |
获取u盘个数 更多... | |
int | tq_get_udisk_devname (int index, char *buff, int length) |
获取U盘设备节点 更多... | |
int | tq_get_flash_dev (char *ndev) |
获取闪存对象 更多... | |
int | tq_get_disk_path (const char *node, char *buff, int size) |
Get the disk path object. 更多... | |
int | tq_get_sdisk_dev (char *ndev) |
Get the sdisk dev object. 更多... | |
int | tq_get_nvme_dev (char *ndev) |
Get the nvme dev object. 更多... | |
int | tq_CheckIsDiskOrUsbDisk (char *devname) |
判读是u盘还是sata硬盘 更多... | |
int tq_CheckIsDiskOrUsbDisk | ( | char * | devname | ) |
判读是u盘还是sata硬盘
devname | devname 为设备节点 |
int tq_get_disk_path | ( | const char * | node, |
char * | buff, | ||
int | size | ||
) |
Get the disk path object.
buff | My Param doc |
size | My Param doc |
int tq_get_flash_dev | ( | char * | ndev | ) |
获取闪存对象
ndev | 设备节点名 |
int tq_get_nvme_dev | ( | char * | ndev | ) |
Get the nvme dev object.
ndev | My Param doc |
int tq_get_sdisk_dev | ( | char * | ndev | ) |
Get the sdisk dev object.
ndev | My Param doc |
int tq_get_udisk_count | ( | void | ) |
获取u盘个数
int tq_get_udisk_devname | ( | int | index, |
char * | buff, | ||
int | length | ||
) |
获取U盘设备节点
index | u盘号 |
buff | 获取后挂载路径 |
length | buff的空间大小 |