Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Nothing fancy, just initialize lists and locks and counters.

Proto:void fsnotify_init_mark(struct fsnotify_mark *mark, struct fsnotify_group *group)

Type:void

Parameter:

TypeParameterName
struct fsnotify_mark *mark
struct fsnotify_group *group
809  memset(mark, 0, size of mark )
810  Process spin lock initialization( & Protects inode / mnt pointers, flags, masks )
811  _set - set a refcount's value*@r: the refcount*@n: value to which the refcount will be set
812  Get reference to a group.
813  Group this mark is for. Set on mark creation, stable until last ref * is dropped = group
814  WRITE_ONCE( Head of list of marks for an object [mark ref] , NULL)
Caller
NameDescribe
audit_init_parentInitialize a parent watch entry.
audit_alloc_mark
alloc_mark
fcntl_dirnotifyWhen a process calls fcntl to attach a dnotify watch to a directory it ends* up here. Allocate both a mark for fsnotify to add and a dnotify_struct to be* attached to the fsnotify_mark.
inotify_new_watch
fanotify_add_new_mark