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:cdev_dynamic_release

Proto:static void cdev_dynamic_release(struct kobject *kobj)

Type:void

Parameter:

TypeParameterName
struct kobject *kobj
609  p = container_of - cast a member of a structure out to the containing structure*@ptr: the pointer to the member.*@type: the type of the container struct this is embedded in.*@member: the name of the member within the struct.(kobj, structcdev, kobj)
610  parent = parent
612  cdev_purge(p)
613  kfree(p)
614  kobject_put() - Decrement refcount for object.*@kobj: object.* Decrement the refcount, and if 0, call kobject_cleanup().