函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\notify\fanotify\fanotify.c Create Date:2022-07-29 10:49:51
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:fanotify_free_event

函数原型:static void fanotify_free_event(struct fsnotify_event *fsn_event)

返回类型:void

参数:

类型参数名称
struct fsnotify_event *fsn_event
477  event等于FANOTIFY_E(fsn_event)
478  如果fanotify_event_has_path(event)则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  否则如果fanotify_event_has_ext_fh(event)则释放内存
482  put_pid(pid)
483  如果fanotify_is_perm_event(mask)则
484  kmem_cache_free(fanotify_perm_event_cachep, FANOTIFY_PE(fsn_event))
486  返回
488  kmem_cache_free(fanotify_event_cachep, event)