函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\char_dev.c Create Date:2022-07-29 10:32:41
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:dev_alloc() - allocate a cdev structure* Allocates and returns a cdev structure, or NULL on failure.

函数原型:struct cdev *cdev_alloc(void)

返回类型:struct cdev

参数:

632  p等于分配内存并置零
633  如果p
634  初始化链表头
635  kobject_init() - Initialize a kobject structure
637  返回:p
调用者
名称描述
__register_chrdev__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