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_purge

Proto:static void cdev_purge(struct cdev *cdev)

Type:void

Parameter:

TypeParameterName
struct cdev *cdev
437  spin_lock( & cdev_lock)
438  When Not list_empty - tests whether a list is empty*@head: the list to test. cycle
440  inode = 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.(next, structinode, i_devices)
441  list_del_init - deletes entry from list and reinitialize it.*@entry: the element to delete from the list.
442  i_cdev = NULL
444  spin_unlock( & cdev_lock)
Caller
NameDescribe
cdev_default_release
cdev_dynamic_release