---
name: "libkyusb"
section: "3"
platform: "linux"
package: "libkysdk-system"
version: "3.0.1.4-1"
release: "Arch Linux 2026-11-07"
platforms: ["linux"]
url: "https://carta.tech/man/libkyusb"
---

# libkyusb(3)

获取usb信息

## NAME

kdk\_usb\_get\_list, kdk\_usb\_free - 获取usb信息

## SYNOPSIS

```
#include <libkyusb.h>

extern pDriverInfoList kdk_usb_get_list();

extern void kdk_usb_free(pDriverInfoList list);

Link with -lkyusb.
```

## Detailed Description

This library contains usb information.

## DATA STRUCTURES

Structure **pDriverInfoList** contains information related to a usb information:

**typedef struct driver\_list {**\
\
 	**struct driver\_info \*data;**\
     **struct driver\_list \*next;**\
 **}  DriverInfoList, \*pDriverInfoList;**

There are other members not documented here, which are only meant for libkyusb internal use.

Structure **driver\_info** contains information related to a usb information:

**typedef struct driver\_info {**\
\
 	**char name\[32\]; //名称**\
     **char type\[2 + 1\]; //类型**\
     **char pid\[4 + 1\];**\
     **char vid\[4 + 1\];**\
     **char serialNo\[32\]; //序列号**\
     **char devNode\[32\]; //路径**\
 **} DriverInfo, \*pDriverInfo;**

There are other members not documented here, which are only meant for libkyusb 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\_usb\_get\_list**() and **kdk\_usb\_free**().

## SEE ALSO

[**kdk\_usb\_get\_list**(3)](/man/kdk_usb_get_list/3.md) and [**kdk\_usb\_free**(3)](/man/kdk_usb_free/3.md).
