函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Destroy all marks attached to an object via connector

函数原型:void fsnotify_destroy_marks(fsnotify_connp_t *connp)

返回类型:void

参数:

类型参数名称
fsnotify_connp_t *connp
768  struct fsnotify_mark * mark, * old_mark = NULL
772  conn等于Get mark connector, make sure it is alive and return with its lock held.* This is for users that get connector pointer from inode or mount. Users that* hold reference to a mark on the list may directly lock connector->lock as
773  如果非conn则返回
783  fsnotify_get_mark(mark)
784  自旋锁解锁
785  如果old_markfsnotify_put_mark(old_mark)
787  old_mark等于mark
788  fsnotify_destroy_mark(mark, Group this mark is for. Set on mark creation, stable until last ref * is dropped )
789  加自旋锁
796  objp等于fsnotify_detach_connector_from_object(conn, & type)
797  自旋锁解锁
798  如果old_markfsnotify_put_mark(old_mark)
800  Drop object reference originally held by a connector