函数逻辑报告

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

函数名称:Nothing fancy, just initialize lists and locks and counters.

函数原型:void fsnotify_init_mark(struct fsnotify_mark *mark, struct fsnotify_group *group)

返回类型:void

参数:

类型参数名称
struct fsnotify_mark *mark
struct fsnotify_group *group
809  memset(mark, 0, mark的长度)
810  spin_lock_init( & 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)
调用者
名称描述
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