---
name: "cdev_init"
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_init"
---

# cdev\_init(9)

initialize a cdev structure

## NAME

cdev\_init - initialize a cdev structure

## SYNOPSIS

**void cdev\_init(struct cdev \*** *cdev***, const struct file\_operations \*** *fops***);**

## ARGUMENTS

*cdev*

the structure to initialize

*fops*

the file\_operations for this device

## DESCRIPTION

Initializes *cdev*, remembering *fops*, making it ready to add to the system with **cdev\_add**.

## COPYRIGHT
