函数逻辑报告

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_init() - initialize a cdev structure*@cdev: the structure to initialize*@fops: the file_operations for this device* Initializes @cdev, remembering @fops, making it ready to add to the* system with cdev_add().

函数原型:void cdev_init(struct cdev *cdev, const struct file_operations *fops)

返回类型:void

参数:

类型参数名称
struct cdev *cdev
const struct file_operations *fops
650  memset(cdev, 0, sizeof * cdev)
651  初始化链表头
652  kobject_init() - Initialize a kobject structure
653  ops等于fops
调用者
名称描述
posix_clock_register