---
name: "cdev_add"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/cdev_add"
---

# cdev\_add(9)

add a char device to the system

## NAME

cdev\_add - add a char device to the system

## SYNOPSIS

**int cdev\_add(struct cdev \*** *p***, dev\_t** *dev***, unsigned** *count***);**

## ARGUMENTS

*p*

the cdev structure for the device

*dev*

the first device number for which this device is responsible

*count*

the number of consecutive minor numbers corresponding to this device

## DESCRIPTION

**cdev\_add** adds the device represented by *p* to the system, making it live immediately. A negative error code is returned on failure.

## COPYRIGHT
