Function report |
Source Code:fs\char_dev.c |
Create Date:2022-07-28 20:02:45 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:__register_chrdev() - create and register a cdev occupying a range of minors*@major: major device number or 0 for dynamic allocation*@baseminor: first of the requested range of minor numbers*@count: the number of minor numbers required*@name: name of this
Proto:int __register_chrdev(unsigned int major, unsigned int baseminor, unsigned int count, const char *name, const struct file_operations *fops)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| unsigned int | major | |
| unsigned int | baseminor | |
| unsigned int | count | |
| const char * | name | |
| const struct file_operations * | fops |
| 280 | cdev = dev_alloc() - allocate a cdev structure* Allocates and returns a cdev structure, or NULL on failure. |
| 295 | out : |
| 297 | out2 : |
| 299 | Return err |
| Name | Describe |
|---|---|
| cpuid_init | |
| register_chrdev |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |