Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:fanotify_free_event

Proto:static void fanotify_free_event(struct fsnotify_event *fsn_event)

Type:void

Parameter:

TypeParameterName
struct fsnotify_event *fsn_event
477  event = FANOTIFY_E(fsn_event)
478  If fanotify_event_has_path(event) Then path_put - put a reference to a path*@path: path to put the reference to* Given a path decrement the reference count to the dentry and the vfsmount.
480  Else if fanotify_event_has_ext_fh(event) Then kfree(ext_fh)
482  put_pid(pid)
483  If fanotify_is_perm_event(mask) Then
484  kmem_cache_free(fanotify_perm_event_cachep, FANOTIFY_PE(fsn_event))
486  Return
488  kmem_cache_free(fanotify_event_cachep, event)