LIBKYDISKINFO(3) Library Functions Manual LIBKYDISKINFO(3) NAME kdk_get_disklist, kdk_free_disklist, kdk_get_diskinfo, kdk_get_hard_disk, kdk_get_hard_disk_size, kdk_get_hard_fwrev, kdk_get_hard_type, kdk_get_hard_model, kdk_get_hard_serial, kdk_get_hard_vendor, kdk_free_diskinfo - SYNOPSIS #include extern char** kdk_get_disklist(); extern void kdk_free_disklist(char** disklist); extern kdk_diskinfo *kdk_get_diskinfo(const char *diskname); extern char** kdk_get_hard_disk(); extern char* kdk_get_hard_disk_size(const char *hardname); extern char* kdk_get_hard_fwrev(const char *hardname); extern char* kdk_get_hard_type(const char *hardname); extern char* kdk_get_hard_model(const char *hardname); extern char* kdk_get_hard_serial(const char *hardname); extern char* kdk_get_hard_vendor(const char *hardname); extern void kdk_free_diskinfo(kdk_diskinfo *disk); Link with -lkydiskinfo. Detailed Description This library contains disk information. DATA STRUCTURES Structure kdk_diskinfo contains information related to a disk: typedef struct _kdk_diskinfo { char *name; // char *vendor; // char *model; // char *serial; // kdk_disk_type disk_type; // or or kdk_disk_interface_type inter_type; // unsigned int rpm; // unsigned long long sectors_num; // unsigned int sector_size; // float total_size_MiB; // MiB unsigned int partition_nums; // / char *uuid; // UUID short mounted; // char *mount_path; // kdk_disk_format format; // kdk_disk_partition_type part_type; // char *fwrev; // }kdk_diskinfo; There are other members not documented here, which are only meant for libkydiskinfo internal use. RETURN VALUE The return value is generally specific to the individual function called. CONFORMING TO These functions are as per the withdrawn POSIX.1e draft specification. The following functions are Linux extensions: kdk_get_disklist(), kdk_get_diskinfo(), kdk_get_hard_disk(), and kdk_get_hard_disk_size(). SEE ALSO kdk_free_disklist(3), kdk_get_diskinfo(3), kdk_free_diskinfo(3) kdk_get_disklist(3) Linux Programmer's Manual Thu Aug 10 2023 LIBKYDISKINFO(3)