---
name: "class_device_destroy"
section: "9"
platform: "linux"
package: "linux-manual-2.6.24"
version: "2.6.24-6~etchnhalf.9etch3"
release: "Debian 4.0 (Etch)"
platforms: ["linux"]
url: "https://new.carta.tech/class_device_destroy"
---

# class\_device\_destroy(9)

removes a class device that was created with class\_device\_create

## NAME

class\_device\_destroy - removes a class device that was created with class\_device\_create

## SYNOPSIS

**void class\_device\_destroy(struct class \*** *cls***, dev\_t** *devt***);**

## ARGUMENTS

*cls*

the pointer to the struct class that this device was registered \* with.

*devt*

the dev\_t of the device that was previously registered.

## DESCRIPTION

This call unregisters and cleans up a class device that was created with a call to **class\_device\_create**

## COPYRIGHT
