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

Proto:void cd_forget(struct inode *inode)

Type:void

Parameter:

TypeParameterName
struct inode *inode
428  spin_lock( & cdev_lock)
429  list_del_init - deletes entry from list and reinitialize it.*@entry: the element to delete from the list.
430  i_cdev = NULL
431  i_mapping = i_data
432  spin_unlock( & cdev_lock)
Caller
NameDescribe
evictFree the inode passed in, removing it from the lists it is still connected* to