---
name: "kdk_usb_free"
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/kdk_usb_free"
---

# kdk\_usb\_free(3)

释放kdk\_usb\_get\_list返回的usb信息结构体

## NAME

kdk\_usb\_free - 释放kdk\_usb\_get\_list返回的usb信息结构体

## SYNOPSIS

```
#include <libkyusb.h>

extern void kdk_usb_free(pDriverInfoList list);

Link with -lkyusb.
```

## Detailed Description

The main function of the interface is to release the usb information structure returned by the  *kdk\_usb\_get\_list.*

The argument *list* is the return value of the  *kdk\_usb\_get\_list.*

## RETURN VALUE

No return value

## EXAMPLES

```
#include "stdio.h"
#include "libkyusb.h"
int main()
{
    pDriverInfoList list = kdk_usb_get_list();
    if(list)
    {
        pDriverInfoList tmp = list;
        while (tmp)
        {
            printf("Name: %s ",tmp->data->name);
            printf("Class: %s ",tmp->data->type);
            printf("PID: %s ",tmp->data->pid);
            printf("VID: %s ",tmp->data->vid);
            printf("Serial: %s ",tmp->data->serialNo);
            printf("DevNode: %s0,tmp->data->devNode);
            tmp = tmp->next;
        }
    }
    kdk_usb_free(list);
    return 0;
}
```

## CONFORMING TO

These functions are as per the withdrawn POSIX.1e draft specification. The following functions are Linux extensions: **kdk\_usb\_get\_list**().

## SEE ALSO

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