Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\audit_watch.c Create Date:2022-07-28 11:29:01
Last Modify:2020-03-17 17:15:07 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Initialize a watch entry.

Proto:static struct audit_watch *audit_init_watch(char *path)

Type:struct audit_watch

Parameter:

TypeParameterName
char *path
164  watch = 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).
165  If Value for the false possibility is greater at compile time(!watch) Then Return ERR_PTR( - ENOMEM)
168  Initialization list head
169  _set - set a refcount's value*@r: the refcount*@n: value to which the refcount will be set
170  sertion path = path
171  associated superblock device = AUDIT_DEV_UNSET
172  associated inode number = AUDIT_INO_UNSET
174  Return watch
Caller
NameDescribe
audit_to_watchTranslate a watch string to kernel representation.
audit_dupe_watchDuplicate the given audit watch. The new watch's rules list is initialized* to an empty list and wlist is undefined.