Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Create a new fsnotify_group and hold a reference for the group returned.

Proto:struct fsnotify_group *fsnotify_alloc_group(const struct fsnotify_ops *ops)

Type:struct fsnotify_group

Parameter:

TypeParameterName
const struct fsnotify_ops *ops
120  group = kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc).
121  If Not group Then Return ERR_PTR( - ENOMEM)
125  _set - set a refcount's value*@r: the refcount*@n: value to which the refcount will be set
126  atomic_set( & 1 for each mark and 1 for not being * past the point of no return when freeing * a group , 0)
127  atomic_set( & Number of tasks waiting for user * response , 0)
129  Process spin lock initialization( & protect the notification_list )
130  Initialization list head
131  init_waitqueue_head( & read() on the notification file blocks on this waitq )
132  maximum events allowed on the list = UINT_MAX
134  mutex_init - initialize the mutex*@mutex: the mutex to be initialized* Initialize the mutex to unlocked state.* It is not allowed to initialize an already locked mutex.( & protect marks_list )
135  Initialization list head
137  how this group handles things = ops
139  Return group
Caller
NameDescribe
audit_watch_init
audit_fsnotify_init
audit_tree_init
dnotify_init
inotify_new_group
SYSCALL_DEFINE2anotify syscalls