Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\char_dev.c Create Date:2022-07-28 20:02:46
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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().

Proto:void cdev_init(struct cdev *cdev, const struct file_operations *fops)

Type:void

Parameter:

TypeParameterName
struct cdev *cdev
const struct file_operations *fops
650  memset(cdev, 0, sizeof * cdev)
651  Initialization list head
652  kobject_init() - Initialize a kobject structure
653  ops = fops