__unregister_chrdev(9)

__unregister_chrdev9

Unregister and destroy a cdev

Usage

void __unregister_chrdev(unsigned int major, unsigned int baseminor, unsigned int count, const char * name);

Arguments

major

major device number

baseminor

first of the range of minor numbers

count

the number of minor numbers this cdev is occupying

name

name of this range of devices

Overview

Unregister and destroy the cdev occupying the region described by major, baseminor and count. This function undoes what __register_chrdev did.

Releases

4 releases since Debian 6.0 (Squeeze); the text changed 3 times.

  1. 6.0
  2. 7
  3. 8
  4. 9

From linux-manual-4.9 4.9.228-1 in Debian 9 (Stretch). Parsed by carta from the page's man source.