函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\notify\mark.c Create Date:2022-07-29 10:48:07
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:fsnotify_detach_connector_from_object

函数原型:static void *fsnotify_detach_connector_from_object(struct fsnotify_mark_connector *conn, unsigned int *type)

返回类型:void

参数:

类型参数名称
struct fsnotify_mark_connector *conn
unsigned int *type
176  struct inode * inode = NULL
178  type等于 Type of object [lock]
179  如果 Type of object [lock] 恒等于FSNOTIFY_OBJ_TYPE_DETACHED则返回:NULL
182  如果 Type of object [lock] 恒等于FSNOTIFY_OBJ_TYPE_INODE
183  inode等于fsnotify_conn_inode(conn)
184  i_fsnotify_mask等于0
185  atomic_long_inc( & s_fsnotify_inode_refs)
186  否则如果 Type of object [lock] 恒等于FSNOTIFY_OBJ_TYPE_VFSMOUNT
187  mnt_fsnotify_mask等于0
188  否则如果 Type of object [lock] 恒等于FSNOTIFY_OBJ_TYPE_SB
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  返回:inode
调用者
名称描述
fsnotify_put_mark
fsnotify_destroy_marksDestroy all marks attached to an object via connector