Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:fanotify_add_new_mark

Proto:static struct fsnotify_mark *fanotify_add_new_mark(struct fsnotify_group *group, fsnotify_connp_t *connp, unsigned int type, __kernel_fsid_t *fsid)

Type:struct fsnotify_mark

Parameter:

TypeParameterName
struct fsnotify_group *group
fsnotify_connp_t *connp
unsigned inttype
__kernel_fsid_t *fsid
685  If atomic_read( & 1 for each mark and 1 for not being * past the point of no return when freeing * a group ) > max_marks Then Return ERR_PTR( - ENOSPC)
688  mark = kmem_cache_alloc(fanotify_mark_cache, GFP_KERNEL)
689  If Not mark Then Return ERR_PTR( - ENOMEM)
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  If ret Then
695  fsnotify_put_mark(mark)
696  Return ERR_PTR(ret)
699  Return mark
Caller
NameDescribe
fanotify_add_mark