Movatterモバイル変換


[0]ホーム

URL:


alloc_chrdev_region
Prev Chapter 15. Char devices Next

Name

alloc_chrdev_region — register a range of char device numbers

Synopsis

intalloc_chrdev_region(dev_t *dev,
 unsignedbaseminor,
 unsignedcount,
 const char *name);
 

Arguments

dev_t * dev

output parameter for first assigned number

unsigned baseminor

first of the requested range of minor numbers

unsigned count

the number of minor numbers required

const char * name

the name of the associated device or driver

Description

Allocates a range of char device numbers. The major number will be chosen dynamically, and returned (along with the first minor number) indev. Returns zero or a negative error code.


Prev Up Next
register_chrdev_region Home __register_chrdev

[8]ページ先頭

©2009-2025 Movatter.jp