天嵌二次封装库使用手册  V2.1.2
tq_disk.h
浏览该文件的文档.
1 
7 #ifndef LINUX_LIBV2_SOURCE_DISK_TQ_DISK_H_
8 #define LINUX_LIBV2_SOURCE_DISK_TQ_DISK_H_
9 
10 // Copyright 2024 广东省天嵌嵌入式技术股份有限公司
11 
12 
13 #define DEVTYPE_DISK 2
14 #define DEVTYPE_U 3
15 
16 #ifdef __cplusplus
17 #define DISK_API extern "C"
18 #else
19 #define DISK_API
20 #endif
21 
25  int tq_get_udisk_count(void);
33  int tq_get_udisk_devname(int index, char *buff, int length);
39  int tq_get_flash_dev(char *ndev);
46  int tq_get_disk_path(const char* node, char *buff, int size);
52  int tq_get_sdisk_dev(char *ndev);
58  int tq_get_nvme_dev(char *ndev);
64  int tq_CheckIsDiskOrUsbDisk(char *devname);
65 
66 #endif
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.