Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:fsnotify_detach_connector_from_object

Proto:static void *fsnotify_detach_connector_from_object(struct fsnotify_mark_connector *conn, unsigned int *type)

Type:void

Parameter:

TypeParameterName
struct fsnotify_mark_connector *conn
unsigned int *type
176  struct inode * inode = NULL
178  type = Type of object [lock]
179  If Type of object [lock] == FSNOTIFY_OBJ_TYPE_DETACHED Then Return NULL
182  If Type of object [lock] == FSNOTIFY_OBJ_TYPE_INODE Then
183  inode = fsnotify_conn_inode(conn)
184  i_fsnotify_mask = 0
185  atomic_long_inc( & s_fsnotify_inode_refs)
186  Else if Type of object [lock] == FSNOTIFY_OBJ_TYPE_VFSMOUNT Then
187  mnt_fsnotify_mask = 0
188  Else if Type of object [lock] == FSNOTIFY_OBJ_TYPE_SB Then
189  s_fsnotify_mask = 0
192  cu_assign_pointer() - assign to RCU-protected pointer*@p: pointer to assign to*@v: value to assign (publish)* Assigns the specified value to the specified RCU-protected* pointer, ensuring that any concurrent RCU readers will see* any prior initialization( * ( Object pointer [lock] ), NULL)
193  Object pointer [lock] = NULL
194  Type of object [lock] = FSNOTIFY_OBJ_TYPE_DETACHED
196  Return inode
Caller
NameDescribe
fsnotify_put_mark
fsnotify_destroy_marksDestroy all marks attached to an object via connector