函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:fanotify_add_new_mark

函数原型:static struct fsnotify_mark *fanotify_add_new_mark(struct fsnotify_group *group, fsnotify_connp_t *connp, unsigned int type, __kernel_fsid_t *fsid)

返回类型:struct fsnotify_mark

参数:

类型参数名称
struct fsnotify_group *group
fsnotify_connp_t *connp
unsigned inttype
__kernel_fsid_t *fsid
685  如果atomic_read( & 1 for each mark and 1 for not being * past the point of no return when freeing * a group )大于max_marks则返回:错误号
688  mark等于分配高速缓存区
689  如果非mark则返回:错误号
692  Nothing fancy, just initialize lists and locks and counters.
693  ret等于Attach an initialized mark to a given group and fs object.* These marks may be used for the fsnotify backend to determine which* event types should be delivered to which group.
694  如果ret
695  fsnotify_put_mark(mark)
696  返回:错误号
699  返回:mark
调用者
名称描述
fanotify_add_mark