Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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 activityDownload SCCTChinese

Name:cdev_get

Proto:static struct kobject *cdev_get(struct cdev *p)

Type:struct kobject

Parameter:

TypeParameterName
struct cdev *p
350  owner = owner
353  If owner && Not try_module_get(owner) Then Return NULL
355  kobj = kobject_get_unless_zero( & kobj)
356  If Not kobj Then module_put(owner)
358  Return kobj
Caller
NameDescribe
chrdev_openCalled every time a character special file is opened
exact_lock